Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 1.34 KB

README.md

File metadata and controls

51 lines (34 loc) · 1.34 KB

Breakout AI using NEAT

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.

Requirements

  • Python 3.x
  • Pyxel
  • NEAT-Python
  • Matplotlib

Installation

  1. Clone the repository:

    git clone https://github.com/Fbrrrr/breakout-ai.git
    cd breakout-ai
  2. Install the required packages:

    pip install -r requirements.txt

Usage

  1. Run the BreakoutAI.py script:

    python BreakoutAI.py
  2. The AI will start training, and you will see the current generation, highest fitness, and average fitness displayed on the screen.

File Descriptions

  • 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.

Screenshots

To do

Acknowledgements

  • NEAT-Python - Library for NEAT (NeuroEvolution of Augmenting Topologies) in Python.
  • Pyxel - A retro game engine for Python.

License

This project is licensed under the MIT License.