AI learns the Dino game
Generation 1 vs generation 100 on a course neither had seen. Generation 1 was gone in 8 seconds; 5 of generation 100 ran all 6 km.
An endless runner in the style of the offline browser game, with our own graphics. Touch a cactus or a bird and you're out, and the speed keeps rising. One tribe, Azure: 48 AIs per generation, each with 8 senses, 8 hidden neurons and 2 buttons (jump, duck). The finish line is 6 km away.
They trained for 100 generations on one course. The video then puts generation 1 and generation 100 on a new course that neither had seen, first try for both.
| On the new course | Generation 1 | Generation 100 |
|---|---|---|
| Best distance | 124 m | 6 km |
| Ran all 6 km | 0 of 48 | 5 of 48 |
| All gone after | 8 seconds |
Did it learn, or memorise?
A course you train on can be memorised. So we gave generation 100 five courses it had never seen. It finished all five, with 2 to 6 of its 48 AIs reaching 6 km each time.
That is not true of every run. We trained 10 runs with different seeds; 4 reached 6 km on their training course. One of them finished that course in generation 69 but reached 6 km on only 1 of 5 new courses: it had learned the course, not the game. The run in the video is one that passes the new-course test.