ivanseidel / IAMDinosaur

🦄 An Artificial Inteligence to teach Google's Dinosaur to jump cactus
MIT License
2.8k stars 533 forks source link

Dinosaur Doesn't Jump Or Duck #29

Open kelvinkellner opened 7 years ago

kelvinkellner commented 7 years ago

After finally figuring out how to set everything up, and running the index.js file and pressing s, the dinosaur doesn't actually jump or duck. It just walks right into the first cactus, loses, then restarts again, and it keeps doing it over again.

lesander commented 7 years ago

[...] the dinosaur doesn't actually jump or duck. It just walks right into the first cactus, loses, then restarts again, and it keeps doing it over again.

That's the whole point of this AI. By 'dying over and over again', the AI learns that the genome it used was ineffective, and will evolve from that to something new (mutate), and then try again.

After hundreds of 'generations', there is a chance that a good genome will be able to play the game better than you ;)

I recommend you to watch the video of @ivanseidel on YouTube (with English subtitles) https://www.youtube.com/watch?v=P7XHzqZjXQs&feature=youtu.be

The ninja genome can be found at: https://github.com/ivanseidel/IAMDinosaur/blob/master/genomes/ninja.json