This project implements a Breakout game AI using the NEAT (NeuroEvolution of Augmenting Topologies) algorithm. The AI controls the paddle in the Breakout game, trying to maximize its fitness by breaking as many blocks as possible.
- Python 3.x
- Pyxel
- NEAT-Python
- Matplotlib
-
Clone the repository:
git clone https://github.com/Fbrrrr/breakout-ai.git cd breakout-ai
-
Install the required packages:
pip install -r requirements.txt
-
Run the
BreakoutAI.py
script:python BreakoutAI.py
-
The AI will start training, and you will see the current generation, highest fitness, and average fitness displayed on the screen.
BreakoutAI.py
: The main script that runs the Breakout game and trains the AI using NEAT.config-feedforward.txt
: Configuration file for NEAT.requirements.txt
: Lists the required Python packages.
To do
- NEAT-Python - Library for NEAT (NeuroEvolution of Augmenting Topologies) in Python.
- Pyxel - A retro game engine for Python.
This project is licensed under the MIT License.