GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - allenmonkey970/NEAT-Pacman: Python project where a Pacman agent learns to play the game using NEAT (NeuroEvolution of Augmenting Topologies) and neural networks. Includes full game simulation, agent training, replay visualization, and automated hyperparameter tuning with Optuna.

BranchesTags
Open more actions menu

Latest commit

 

History

28 Commits
28 Commits

Folders and files

NameName
Last commit message
Last commit date
assets
assets
 
 
src
src
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

NEAT-Pacman

NEAT-Pacman is a Pacman agent trained with NEAT (NeuroEvolution of Augmenting Topologies). It learns to move through the maze and eat dots over many generations.

Demo

Trained agent replay:
Pacman agent replay

Fitness history:
Fitness history

Project structure

  • src/Pacman.py: game simulation, training, and replay
  • src/optimize.py: Optuna hyperparameter tuning
  • src/config/neat_config.txt: NEAT settings
  • src/outputs/: generated training and replay files
  • assets/: images and gif used in this README

Getting started

Requirements:

  • Python 3.7+
  • Windows or macOS for GIF export with PIL.ImageGrab

Install dependencies:

pip install -r requirements.txt

Usage

Run commands from src/:

cd src

Train an agent:

python Pacman.py

Then select option 1.

Replay the best agent:

python Pacman.py

Then select option 2.

Replay a specific generation:

python Pacman.py

Then select option 3 and enter a generation (example: 042).

Tune hyperparameters:

python optimize.py

Configuration

Main config file:

  • src/config/neat_config.txt

Important constants are in:

  • src/Pacman.py

References

  • https://neat-python.readthedocs.io/en/latest/
  • https://optuna.org/
  • https://pypi.org/project/freegames/
  • https://github.com/grantjenks/free-python-games

License

MIT License: LICENSE

About

Python project where a Pacman agent learns to play the game using NEAT (NeuroEvolution of Augmenting Topologies) and neural networks. Includes full game simulation, agent training, replay visualization, and automated hyperparameter tuning with Optuna.

Topics

aineatneat-pythonoptunapacmanreinforcement-learning

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.