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=30,
num_cells_per_row=30,
cell_size_x=20,
cell_size_y=20,
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()