-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
49 lines (44 loc) · 1017 Bytes
/
Copy pathmain.py
File metadata and controls
49 lines (44 loc) · 1017 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
from maze import Maze
from window import Window
def main():
"""
Main Method
"""
win = Window(800, 600)
maze = Maze(100, 100, 8, 8, 50, 50, win)
maze.solve()
# point1 = Point(50, 50)
# point2 = Point(100, 100)
# c1 = Cell(point1, point2, win)
# c1.has_right_wall = False
# c1.draw()
#
# point1 = Point(100, 50)
# point2 = Point(150, 100)
# c2 = Cell(point1, point2, win)
# c2.has_left_wall = False
# c2.has_bottom_wall = False
# c2.draw()
#
# c1.draw_move(c2)
#
# point1 = Point(100, 100)
# point2 = Point(150, 150)
# c3 = Cell(point1, point2, win)
# c3.has_top_wall = False
# c3.has_right_wall = False
# c3.draw()
#
# c2.draw_move(c3)
#
# point1 = Point(150, 100)
# point2 = Point(200, 150)
# c4 = Cell(point1, point2, win)
# c4.has_left_wall = False
# c4.draw()
#
# c3.draw_move(c4, undo=True)
#
win.wait_for_close()
if __name__ == "__main__":
main()