Skip to content

Ai to play pac man forked from Devin Leamy

License

Notifications You must be signed in to change notification settings

MesaJonathan/Pacman-AI

 
 

Repository files navigation

Retro Games

AI using Proximal Policy Optimization to play the game pacman made in PyGame by DevinLeamy. I will be using his implementation of the classic game PacMan with the AI to play the game being written by myself.

Pacman

The 80s classic Pacman in all its beauty

How to Play:

  1. Option One:
    1. Download the Pacman folder
    2. Download Python3 [https://www.python.org/downloads/]
    3. Install pygame(2.0.0) [pip3 and homebrew are easy options]
    4. In terminal, navigate to the file Pacman.py
    5. In terminal type python3 Pacman.py and hit enter


How was AI implemented 0. Environment Tuning 1. get rid of title screen 2. get rid of lives so there is one life and on death entire game resets(pellets, pacman, ghosts, etc...)
  1. Q-learning rewards:

    • normal pellet: +3
    • power pellet: +5
    • eating ghost: + 10
    • death: -50
  2. PPO

    1. pass

Note: To adjust screen size change the variable "square" on line #59 of Pacman/Pacman.py

Gameplay (delay is just an artifact of the video quality; it runs smooth):
Pacman Gameplay

About

Ai to play pac man forked from Devin Leamy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%