dilawarm / pacman

Minimax with Alpha-beta pruning for Pacman.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minimax with Alpha-beta pruning for Pacman

drawing

Minimax with Alpha-beta pruning for Pacman.

This code is written as an assignment for the course TDT4136 - Introduction to Artificial Intelligence 🏫

The agents are implemented in multiAgents.py. For more information, visit http://ai.berkeley.edu/multiagent.html

How to run

git clone https://github.com/dilawarm/pacman.git
cd pacman
sudo apt install python3-tk 

Play a game of classic pacman

python3 pacman.py

Run the reflex agent

python3 pacman.py -p ReflexAgent

Run the minimax agent

python3 pacman.py -p MinimaxAgent

Run the minimax agent with alpha-beta pruning

python3 pacman.py -p AlphaBetaAgent

Enjoy! 🚀

About

Minimax with Alpha-beta pruning for Pacman.


Languages

Language:Python 100.0%