-
Notifications
You must be signed in to change notification settings - Fork 8
/
README
28 lines (18 loc) · 947 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Here i will be posting the commands to run the programs related to AI
The commands are as follows:
1 - To play the PACMAN game write the command in your terminal: python pacman.py
2 - To see the Searching Algorithm to work write the following commands after the python keyword into the terminal:
-python pacman.py -l <mazename> -p SearchAgent -a fn=<searching function>
replace the following with any of the below keyword:
<mazename> - tinyMaze
- mediumMaze
- bigMaze
<searchingfunction> - dfs (depth first search)
- bfs (breath first search)
- ucs (uniform cost search)
- aster (A* Search)
example:
-python pacman.py -l mediumMaze -p SearchAgent -a fn=dfs
-while using 'astar' write like this to give it a heuristic function:
python pacman.py -l bigMaze -p SearchAgent -a fn=astar,heuristic=manhattanHeuristic
THE SEARCHING PART CAN BE SEEN IN THE search.py python file file