I am trying to create a DFS algorithm to search a 2D List character maze in python but I am unsure as to how exactly to do it. The end goal is to find out as to whether or not the maze is solvable so I would return True if solvable and False otherwise.
Maze Key: - 'S' start - 'G' goal - 'W' wall - 'x' floor
Example Maze
x S W
x x W
x W G
x x x