added main
This commit is contained in:
@@ -42,3 +42,12 @@ def get_neighbors(maze: TurtleMaze, cell: Cell) -> list[Cell]:
|
|||||||
neighbors.append(west)
|
neighbors.append(west)
|
||||||
|
|
||||||
return neighbors
|
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)
|
||||||
Reference in New Issue
Block a user