AI_Flappy_Bird
This repository holds the Flappy Bird game implementations where you can play the game manually or train an AI to play the game.
Contents
-
Flappy Bird game:
-
AI Flappy Bird with NEAT algorithm:
Usage
-
To play the game manually:
- Run
python bird_manual.py
- Click or press Space to start the game.
- Press SpaceorUP to control the bird.
- Press Escape to exit the game.
- Run
-
To train an AI to play the game:
- Run
python bird_ai.py
- Run
Dependencies
- pygame
- numpy
- neat-python
- os
- sys
- random
Acknowledgements
The Flappy Bird game design images come from Github repository FlapPyBird and some code of the NEAT algorithm implementation on Flappy Bird game comes from NEAT-Flappy-Bird.
You can also check NEAT-Python to find the official documentation of Neat-Python.