This project features a Flappy Bird game implemented in Python using Pygame. It offers two modes of play:
- Single Player Mode: Controlled by a human player.
- AI Mode: Controlled by a neural network using the NEAT (NeuroEvolution of Augmenting Topologies) algorithm.
run.py
: This file allows you to play the game in single-player mode.run_ai.py
: This file allows the NEAT AI to play the game.
To run this project, you'll need the following Python packages:
pygame
: For the game interface.neat-python
: For the NEAT algorithm implementation.
You can install these packages using the following command:
pip install -r requirements.txt
Single Player Mode
To play the game in single-player mode, run the following command:
pip install run.py
AI Mode
To watch the NEAT AI play the game, run the following command:
pip install run_ai.py
The AI will start learning to play the game using the NEAT algorithm. You can observe the evolution process and how the AI improves over generations.