Skip to content

venky4121994/MultiAgentPacman

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MultiAgentPacman

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.

Usage

  1. Clone the repository
  2. Open the terminal and run the following:
cd dir
(command)

We can use the command below to run the project

List of commands Pacman AI

// 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

Video overview

Video Walkthrough

The above shows the pacman behavior on reflex agent with two ghost.

Thanks

CSE 150 - UCSD

About

Pacman AI Alpha beta 😎

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%