Pacman AI Agent
AI / April 2023
Search algorithms and reinforcement learning for game-playing AI agents.
- Python
- NumPy
- Matplotlib
Overview
Search algorithms and reinforcement learning for game-playing AI agents in Berkeley's CS 188 (Intro to AI with Stuart Russell).
System design
Implemented the full search algorithm suite - DFS, BFS, UCS, and A* - for pathfinding in maze environments. Then built adversarial agents: Minimax for optimal play against deterministic ghosts, Expectimax for stochastic ghost behavior.
Achieved >90% win rate on benchmark mazes through heuristic tuning. The most effective heuristic combined Manhattan distance to the nearest food pellet with a penalty for proximity to ghosts - simple but hard to beat with more complex approaches.