This project implements FlappyBird game in C++11 using SFML. The game design is inspired by the book SFML Game Development by Jan Haller, Henrik Vogelius Hansson, Artur Moreira.
This project also acts as an environment to test evolutionary algorithm on birds. By using genetic algorithm:
Birds can learn to flap perfectly:
The genetic algorithm is inspired by https://github.com/xviniette/FlappyLearning
- First install SFML (https://github.com/SFML/SFML)
- Then compile with cmake:
git clone https://github.com/tuanphuc/FlappyBirdLab.git
cd FlappyBirdLab
mkdir build
cd build
cmake ..
make
make install
- Add more evolutionary strategies