The popular game Flappy Bird played by a Neural Network with evolution.
- All python dependencies are managed with poetry, this should be installed first.
- It is recommended to use git. Especially if you want to development.
-
Clone the Repository
git clone https://github.com/rayl3r/flappy_bird_clone.git
-
Move into the project folder
cd flappy_bird_clone
-
Install the python dependencies
poetry install
-
Run the code
poetry run python ./flappy_bird/main.py
-
To update the dependencies run
poetry update
-
Start the game with the up arrow key ↑ or the spacebar. To speed up use the right arrow →.
-
Load the example best bird with L and save your own best bird with S and override the sample best bird.
You can find the documentation of the code here.
But that documentation might not be up-to-date so it is advised to build you own documentation running the command:
poetry run pdoc --math flappy_bird
Or run the "documentation" task using VS Code.