Skip to content

TarunGuptaJ/dinoAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dinoAI

Neuroevolution Dino Game


Game

The traditional dinosaur game, where you have to jump over the obstacles.

Game

The slider present at the bottom can be used to speed up the training.


Usage

Clone the repository and open index.html in any browser to initialize the training. Once the performance meets expectation, press 's' to save the weights of the dino to a JSON file.


Demo

We can see the algorithm in action Demo Initially all of them are jumping randomly and after speeding up the process we get a dino that pretty much times the jump perfectly.


Observations

  • By the 5th generation the dinosaur had figured out from what distance it has to jump to cross the obstacle.
  • By the 11th generation the dinosaur had figured out to jump much earlier to cross multiple obstacle one after the other.

The Weights of the 11th Gen dinosaur has been saved in the Dino11thGen.json file.


Links and References