This is a Flappy Bird game implemented in Python using Pygame library. It features both manual play and an AI-driven mode using NEAT (NeuroEvolution of Augmenting Topologies).
- Manual Mode: Control the bird using
spaceorclickto control the bird - AI Mode: Let the AI play the game.
pygameneat-python
- Clone the repository
- Install
neat-pythonandpygame - To run the game, use the following command
python main.py - If you want to train ai using neat. Follow the below steps
- First comment
main.run() - Uncomment
main.train_ai() - Run
python main.py - Now the game will run the neat-algorithm based on the
config-feedforward.txtfile, until best performing model is developed. The best model is then saved asbest_ai.pkl, which can later be used fo allow ai to play the game.
- First comment
