This project involves running the Pacman game with different search algorithms to find paths through mazes of varying sizes. You can use the provided code to run Pacman in different maze configurations.
To get started, you need to have Python and the Pacman codebase set up. If you haven't already, follow the instructions to set up the Pacman project on your local machine.
- Python (version 3.6 or higher)
- Pacman codebase
To run the project with different maze configurations using the SearchAgent, follow these steps:
-
Open your terminal or command prompt.
-
Navigate to the directory where your Pacman codebase is located.
-
Use the following commands to run Pacman with different mazes:
-
move to project folder
cd project
-
To run Pacman in the "tinyMaze" configuration:
python pacman.py -l tinyMaze -p SearchAgent
-
To run Pacman in the "mediumMaze" configuration:
python pacman.py -l mediumMaze -p SearchAgent
-
To run Pacman in the "bigMaze" configuration with a search agent and a search delay of 0.5 seconds:
python pacman.py -l bigMaze -z 0.5 -p SearchAgent
-
- You can explore other maze configurations and agent types by modifying the
-l
and-p
flags in the provided commands. - Feel free to experiment with different search algorithms and parameters to see how Pacman performs in various scenarios.