IAMDinosaur icon indicating copy to clipboard operation
IAMDinosaur copied to clipboard

Dinosaur Doesn't Jump Or Duck

Open kelvinkellner opened this issue 8 years ago • 1 comments

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.

kelvinkellner avatar Oct 19 '16 01:10 kelvinkellner

[...] 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

lesander avatar Nov 19 '16 16:11 lesander