Module pacai.core.search.search
Functions
def tinyMazeSearch(problem)
-
Expand source code
def tinyMazeSearch(problem): """ Returns a sequence of moves that solves `tinyMaze`. For any other maze, the sequence of moves will be incorrect, so only use this for `tinyMaze`. """ s = Directions.SOUTH w = Directions.WEST return [s, s, w, s, w, w, s, w]
Returns a sequence of moves that solves
tinyMaze
. For any other maze, the sequence of moves will be incorrect, so only use this fortinyMaze
.