need to finish the unperfect maze

This commit is contained in:
Maoake Teriierooiterai
2026-03-25 18:45:30 +01:00
parent b8631d5b89
commit 6b3fd9a6b7
4 changed files with 43 additions and 7 deletions
+2 -1
View File
@@ -124,7 +124,8 @@ class AStar(MazeSolver):
class DepthFirstSearchSolver(MazeSolver):
def __init__(self, start, end):
super().__init__(start, end)
self.start = (start[1] - 1, start[0] - 1)
self.end = (end[1] - 1, end[0] - 1)
def solve(self, maze: Maze, height: int = None,
width: int = None) -> str: