diff options
Diffstat (limited to '.vscode/launch.json')
-rw-r--r-- | .vscode/launch.json | 83 |
1 files changed, 68 insertions, 15 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json index 10ed9ff..2c0f7aa 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,23 +5,75 @@ "version": "0.2.0", "configurations": [ { - "name": "debug", + "name": "autograder", + "type": "python", + "request": "launch", + "program": "autograder.py", + }, + { + "name": "tinyMazeSearch", "type": "python", "request": "launch", "program": "pacman.py", "args": [ - "--frameTime=0.01", + "--frameTime=0.02", "--catchExceptions", "--pacman=SearchAgent", - "--agentArgs=fn=${input:searchAlgorithm}", + "--agentArgs=fn=tinyMazeSearch", "--layout=${input:mazeLayout}", ] }, { - "name": "autograder", + "name": "depthFirstSearch", "type": "python", "request": "launch", - "program": "autograder.py", + "program": "pacman.py", + "args": [ + "--frameTime=0.02", + "--catchExceptions", + "--pacman=SearchAgent", + "--agentArgs=fn=depthFirstSearch", + "--layout=${input:mazeLayout}", + ] + }, + { + "name": "breadthFirstSearch", + "type": "python", + "request": "launch", + "program": "pacman.py", + "args": [ + "--frameTime=0.02", + "--catchExceptions", + "--pacman=SearchAgent", + "--agentArgs=fn=breadthFirstSearch", + "--layout=${input:mazeLayout}", + ] + }, + { + "name": "uniformCostSearch", + "type": "python", + "request": "launch", + "program": "pacman.py", + "args": [ + "--frameTime=0.02", + "--catchExceptions", + "--pacman=SearchAgent", + "--agentArgs=fn=uniformCostSearch", + "--layout=${input:mazeLayout}", + ] + }, + { + "name": "aStarSearch", + "type": "python", + "request": "launch", + "program": "pacman.py", + "args": [ + "--frameTime=0.02", + "--catchExceptions", + "--pacman=SearchAgent", + "--agentArgs=fn=aStarSearch,heuristic=${input:heuristic}", + "--layout=${input:mazeLayout}", + ] } ], "inputs": [ @@ -33,22 +85,23 @@ "tinyMazeSearch", "depthFirstSearch", "breadthFirstSearch", - "uniformCostSearch" + "uniformCostSearch", + "aStarSearch" ], - "default": "uniformCostSearch" + "default": "aStarSearch" }, { - "id": "mazeLayout", + "id": "heuristic", "type": "pickString", - "description": "Select the maze layout", + "description": "Select the heuristic", "options": [ - "tinyMaze", - "mediumMaze", - "bigMaze", - "mediumScaryMaze", - "mediumDottedMaze" + "nullHeuristic", + "manhattanHeuristic", + "euclideanHeuristic", + "cornersHeuristic", + "foodHeuristic" ], - "default": "tinyMaze" + "default": "nullHeuristic" } ] }
\ No newline at end of file |