bergel / MiniMario

Game skeleton for machine learning

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MiniMario

Game skeleton for machine learning.

You can open the game, in which Mario is steered by the keyboard (keys: W A D) with:

MNWorld new open.

Using the Pharo implementation of NEAT, you can evolve a neural network with:

neat := NEAT new.
neat numberOfInputs: 121.
neat numberOfOutputs: 3.
neat populationSize: 200.

neat fitness: [ :ind | 
	w := MNWorld new.
	w mario: (MNAIMario new network: ind).
	450 timesRepeat: [ w beat. ].
	w mario position x ].

neat numberOfGenerations: 120.
neat run.

About

Game skeleton for machine learning

License:MIT License


Languages

Language:Smalltalk 99.7%Language:HTML 0.3%