Flappy bird - the bird is learning to fly between the pipes by using Machine Learning and Genetic Algorithm to train it.
You can see the version live on Codepen
- create Bird
- create Pipes
- add physics to Bird
- add collision to Bird with the Pipes
- allow the Bird to jump
- reset game when the Bird collided with a Pipe
- keep track of the score
- keep track of the highest score
- add Neural Network (aka a brain) to the Bird
- train the Bird
- create a population of Birds
- add Genetic Algorithm to the Birds
- create a slider to be able to control how fast the NN will learn
- add bird "death" when hits the floor or ceiling
- add text outside the canvas or make it visible
- add nice graphics to the game
- switch to Brain.js for NN
- add gif example
- FontAwesome v4
- Built with p5js
- Inspired from TheCodingTrain
- Also the matrix & nn libraries from TheCodingTrain