MCPcopy Create free account
hub / github.com/BeeBombshell/Python-DSA / solveMaze

Function solveMaze

Backtracking/Rat_in_a_Maze.py:17–25  ·  view source on GitHub ↗
( maze )

Source from the content-addressed store, hash-verified

15 return False
16
17def solveMaze( maze ):
18 # Creating a 4 * 4 2-D list
19 sol = [ [ 0 for j in range(4) ] for i in range(4) ]
20
21 if solveMazeUtil(maze, 0, 0, sol) == False:
22 print("Solution doesn't exist");
23 return False
24 printSolution(sol)
25 return True
26
27def solveMazeUtil(maze, x, y, sol):
28 # if (x, y is goal) return True

Callers 1

Rat_in_a_Maze.pyFile · 0.85

Calls 2

solveMazeUtilFunction · 0.85
printSolutionFunction · 0.85

Tested by

no test coverage detected