The Flappy Bird NEAT AI project is a game that demonstrates a genetic algorithm (NEAT) applied to train a neural network to play the Flappy Bird game. This is a project for my 4th semester of BSCS.
The Flappy Bird NEAT AI project uses the NEAT (NeuroEvolution of Augmenting Topologies) algorithm to evolve a neural network capable of playing the Flappy Bird game. The project uses the pygame library to simulate the game environment and visualize the training process.
- Implement NEAT algorithm to evolve neural networks.
- Simulate the Flappy Bird game using
pygame. - Display the current score, generation count, and the number of alive birds.
- Visualize the game and training process.
To run the Flappy Bird NEAT AI project, follow these steps:
- Clone the repository or download the source code.
- Install the required dependencies using
pip: - Run the main script:
python main.py
Make sure you have Python and pip installed on your system to install the required packages and run the application.
- Launch the application by running
python main.py. - The neural networks will start playing the Flappy Bird game, and the training process will be visualized on the screen.
- Observe the evolving neural networks as they attempt to maximize their fitness by playing the game.
- Ensure that you have the necessary permissions to read and write to the data file.
- The game environment and training visualization are displayed using
pygame.
Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to create a pull request.
This project is licensed under the MIT License.
For any questions or inquiries, please contact [[email protected]].