maze-solver/main.py

29 lines
499 B
Python
Raw Normal View History

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()