Loading repository data…
Loading repository data…
oEnzoRibas / repository
This project implements an AI to play the Flappy Bird game using the NEAT (NeuroEvolution of Augmenting Topologies) algorithm. The AI learns to navigate between pipes and achieve higher scores through evolution over generations.
This project implements an AI to play the Flappy Bird game using the NEAT (NeuroEvolution of Augmenting Topologies) algorithm. The AI learns to navigate between pipes and achieve higher scores through evolution over generations.
This project was created as an exploration of the NEAT algorithm and its applications in reinforcement learning.
git clone https://github.com/yourusername/flappy-bird-ai.git
cd flappy-bird-ai
pip install pygame neat-python matplotlib
To run the Flappy Bird game manually:
python run.py
To train the AI using the NEAT algorithm:
python neat_run.py
When the training is completed, the best model will be saved in the models/ directory.
To generate graphs showing training progress:
python visualize.py
The graphs are saved in the models/ directory.
Responsible for the bird's movement, jumping, and collision detection.
Controls the pipes' movement and handles collisions with the bird.
Manages the moving base at the bottom of the screen.
Tracks and renders the score on the screen.
NEAT (NeuroEvolution of Augmenting Topologies) is a powerful AI algorithm that evolves neural networks using reinforcement learning. The process involves:
For more information, see the NEAT documentation.
This project is licensed under the MIT License. See the LICENSE file for details.
NEAT-Python library for implementing the NEAT algorithm.Pygame library for creating the game.