/FlappyBirdLab

An evolutionary lab for birds learning to flap

Primary LanguageC++MIT LicenseMIT

FlappyBirdLab

Build Status

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.

play_mode

This project also acts as an environment to test evolutionary algorithm on birds. By using genetic algorithm:

learning_mode

Birds can learn to flap perfectly:

result

The genetic algorithm is inspired by https://github.com/xviniette/FlappyLearning

Install

git clone https://github.com/tuanphuc/FlappyBirdLab.git
cd FlappyBirdLab
mkdir build
cd build
cmake ..
make
make install

Todo

  • Add more evolutionary strategies