Implement Genetic Algorithm to play Flappy Bird
The AI uses Neural Network with 5 attributes to make decision whether the bird should flap or not:
- Height of the bird
- Height of the top pole
- Height of the bottom pole
- Distance between bird and closest bird
- Velocity(how much flap power) of the bird
- Probability (0 - 1) (flap if prob > 0.5)
I make use of Genetic Algorithm: -> Create population of birds (the more the faster the AI converges) -> Let it play with their own brain (making own's decision) -> The best one (highest fitness score) get mutated and get copy to the next generation
Checkout The Coding Train who has inspired me to create this repository