tuanphuc / FlappyBirdLab

An evolutionary lab for birds learning to flap

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

An evolutionary lab for birds learning to flap

License:MIT License


Languages

Language:C++ 74.7%Language:CMake 25.3%