FlappyBirdAI is a python implementation using pygame from tutorials of The Coding Train implementing NEAT algorithm using p5.js
If you want to give it a try you can clone the project
git clone [email protected]:indiVar0508/FappyBirdAI.git
Install the requirements into your Python virtual environment, make sure you are in FlappyBirdAI
directory
python3 -m venv venv # create virtual environment
source venv/bin/activate # activate virtual environment in terminal
pip install -r requirements.txt
If you want to run the game once your virtual environment is setup, you can simply run main.py file to intialize the prompt to start the game.
python main.py
The prompt will give options to either play yourself where you can press S
to play yourself, use Space bar
as a signal to let bird jump in screen. if you want to see how ai Evolves using NeuroEvolution algorithm press A
to let AI play the game and you can watch AI play the game.