Artificial intelligence learns how to play a replica of Chrome's offline mode Dino game using reinforcement learning with NEAT-Python genetic algorithm.
The initial population size is 30, the activation function is set to tanh, and agents (individuals) with the highest score get to reproduce for the next generation.
After a few obstacles, most of the individuals from the population have died, but others learned from their mistakes, optimized their neural networks, and were able to adapt and learn how to beat the game.
Later when the game started to speed up only one individual was able to survive and keep going. I run the game for a few hours and this t-rex became so good that in my opinion, he could keep going forever. As shown this game is very easy for a computer to learn how to play. And with a good initial population and game setting, AI was able to beat it in just a few generations.