I collaborated with Stella Miliatis, William Wallace, and Jose Salazar on this project. Special thanks to the UC Berkeley CS188 staff for providing the framework.
This project is part of the UC Berkeley AI course and focuses on implementing search algorithms to navigate Pacman through different mazes. The goal is to explore and apply fundamental search techniques to solve pathfinding problems efficiently.
- Implementation of various search algorithms
- Navigation of Pacman through different maze environments
- Analysis of algorithm efficiency and performance
- Clone the repository:
https://github.com/lilianpadilla/PacmanSearch.git cd PacmanSearch - Ensure you have Python 3 installed.
- Run the project using:
python pacman.py -l mediumMaze -p SearchAgent -a fn=bfs
You can test different search algorithms using the following commands:
- Depth-First Search (DFS):
python pacman.py -l mediumMaze -p SearchAgent -a fn=dfs
- Breadth-First Search (BFS):
python pacman.py -l mediumMaze -p SearchAgent -a fn=bfs
- Uniform Cost Search (UCS):
python pacman.py -l mediumMaze -p SearchAgent -a fn=ucs
- A Search (A*):*
python pacman.py -l mediumMaze -p SearchAgent -a fn=astar,heuristic=manhattanHeuristic
- Depth-First Search (DFS)
- Breadth-First Search (BFS)
- Uniform Cost Search (UCS)
- A Search (A*) with heuristics*
search.py– Implementation of search algorithmssearchAgents.py– Defines agents using search algorithmspacman.py– Runs the Pacman gamelayout/– Contains different maze configurations
This project is part of UC Berkeley's CS188: Introduction to Artificial Intelligence course.
This project is for educational purposes and follows the UC Berkeley course guidelines.