Skip to content

The Pac-Man projects were developed for UC Berkeley's introductory artificial intelligence course, CS 188. They apply an array of AI techniques to playing Pac-Man. However, these projects don't focus on building AI for video games. Instead, they teach foundational AI concepts, such as informed state-space search, probabilistic inference, and rei…

Notifications You must be signed in to change notification settings

CaffeineOverflowAngeL/Pacman-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Pacman Artificial Intelligence Python project for UC Berkeley CS188 Intro to AI

Pac-Man Projects UC Berkeley

Project 1: Search:

Search

  • Depth-First Search (DFS): Graph search that avoids expanding already visited states. Fringe implemented via stack.

  • Breadth-First Search (BFS): Graph search that avoids expanding already visited states. Fringe implemented via queue.

  • Uniform Cost Search (UCS): Graph search that avoids expanding already visited states. Fringe implemented via Priority Queue.

  • A* Search: uses Manhattan distance heuristic to find optimal solution

  • CornersProblem: Search problem and heuristic for pacman to reach all active corner dots on board.

  • FoodSearchProblem: Search problem and heuristic for pacman to eat all active dots on board.

Project 2: Multiagents:

Multiagents

  • ReflexAgent: A reflex agent uses an evaluation function (aka heuristic function) to estimate the value of an action using the current * game state. The Reflex Agent considered

  • food locations and ghost locations, using reciprocals of distances as features.

  • MinimaxAgent: A minimax agent is implemented using a minimax tree with multiple min layers (one for each ghost) for every max layer. The agent uses an evaluation function that evaluates states, and can sometimes choose to kill itself when believed this is the best choice.

  • AlphaBetaAgent: An alpha beta agent uses alpha-beta pruning to explore the minimax tree.

  • Expectimax: The expectimax pacman makes decisions using the expected value

About

The Pac-Man projects were developed for UC Berkeley's introductory artificial intelligence course, CS 188. They apply an array of AI techniques to playing Pac-Man. However, these projects don't focus on building AI for video games. Instead, they teach foundational AI concepts, such as informed state-space search, probabilistic inference, and rei…

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages