DaMaze
This commit is contained in:
23
main.py
Normal file
23
main.py
Normal 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()
|
||||
Reference in New Issue
Block a user