This commit is contained in:
2025-02-22 22:49:26 +02:00
commit b215893fe8
8 changed files with 310 additions and 0 deletions

23
main.py Normal file
View File

@@ -0,0 +1,23 @@
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()