Files
boot-dev-maze-solver/main.py
2025-02-22 22:49:26 +02:00

24 lines
489 B
Python

from Window import Window
from Maze import Maze
import sys
def main():
cell_size_x = 50
cell_size_y = 50
num_rows = 10
num_cols = 15
margin = 20
screen_x = num_cols * cell_size_x + margin * 2
screen_y = num_rows * cell_size_y + margin * 2
sys.setrecursionlimit(10000)
win = Window(screen_x, screen_y)
maze = Maze(margin, margin, num_rows, num_cols, int(cell_size_x), int(cell_size_y), win, 10)
maze.solve()
win.wait_for_close()
main()