maze-solver/main.py
Dan Anglin c809292c04
checkpoint: visited methods
- Add methods to mark cells as visited and to get results of the visits.
- renamed MazeDirections to MazeDirection
2024-02-16 10:36:06 +00:00

28 lines
499 B
Python

from graphics import Window
from maze import Maze
def main():
window = Window(800, 800)
game = Maze(
x_position=10,
y_position=10,
num_cell_rows=16,
num_cells_per_row=16,
cell_size_x=40,
cell_size_y=40,
window=window
)
solved = game.solve()
if solved:
print("Maze solved successfully :)")
else:
print("I'm unable to solve the maze :(")
window.mainloop()
if __name__ == "__main__":
main()