Pacman AI 😎
Multi Agent Pacman is another version of pacman agent that will find its path with the minimax, alpha beta pruning, and expectimax to collect its foods, and the ghost while blinking.
Expectimax is useful for modeling probabilistic behavior of agents who may make suboptimal choices.
- Clone the repository
- Open the terminal and run the following:
cd dir
(command)
We can use the command below to run the project
// For classic pacman game (you play)
python pacman.py
// Easy
python pacman.py -p ReflexAgent -l testClassic
// Reflex Agent with one ghost / two ghost
python pacman.py --frameTime 0 -p ReflexAgent -k 1
python pacman.py --frameTime 0 -p ReflexAgent -k 2
// Minimax
python pacman.py -p MinimaxAgent -l minimaxClassic -a depth=4
// Alpha beta Agent on small map
python pacman.py -p AlphaBetaAgent -a depth=3 -l smallClassic
// Expectimax Agent
python pacman.py -p ExpectimaxAgent -l minimaxClassic -a depth=3
The above shows the pacman behavior on reflex agent with two ghost.
CSE 150 - UCSD
