Ahh! The classic flappy bird game where you could just tap the screen & avoid the pipes. It was so great back then. I tried to use NEAT Algorithm to create an AI capable of playing flappy bird.
This project mainly uses NEAT algorithm to achieve the task of AI playing the game. All the players are scored based on their distance therefore more distance intrun gives more score. Thus, more chance of having an offspring.
- AI playing the game of Flappy bird.
- Save the current best fit model for the current generation.
Clone the project
git clone https://github.com/Sarath191181208/flappy_bird
Go to the project directory
cd ./flappy_bird
Install dependencies
pip3 install -r requirements.txt
Run the project Locally
python main.py
- S : Save the current leading offspring of this generation.
- Select screen.
- select the saved generation & see it play.
- Allow the human to play with the AI.
- python
Make sure to add to path
- pygame
pip3 install pygame
- tkinter
default
- pyinstaller
pip3 install pyinstaller
this is to create an exe alternatively you can use auto-py-to-exepip install auto-py-to-exe
- colorama
pip3 install colorama