diff --git a/Project 5/TurtleDFS.py b/Project 5/TurtleDFS.py index f8c1618..e7c4304 100644 --- a/Project 5/TurtleDFS.py +++ b/Project 5/TurtleDFS.py @@ -41,4 +41,13 @@ def get_neighbors(maze: TurtleMaze, cell: Cell) -> list[Cell]: if not west.isBlocked(): neighbors.append(west) - return neighbors \ No newline at end of file + return neighbors + +def main(): + maze = TurtleMaze('maze_1.txt') + + start = maze.getStart() + print("Start cell:", start) + + neighbors = get_neighbors(maze, start) + print("Neighbors of start:", neighbors) \ No newline at end of file