This assignment is based on UC Berkely Pacman AI project.
In search.py, we implemented uniform cost, BFS, DFS, and A* search algorithm.
In searchAgents.py, we defined a few problems we need to solve, such as Corners Problem(reaching all four corners on the game board), and Food Search Problem(eating all the food on the game board).
python pacman.py
to run the gamepython autograder.py
to run all the testsTpython autograder.py -q q2
to run particular questionpython autograder.py -t test_cases/q2/0-small-tree
to run particular test case- By default, the autograder displays graphics with the
-t
option, but doesn't with the-q
option. You can force graphics by using the--graphics
flag, or force no graphics by using the--no-graphics
flag.