-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmaze.py
executable file
·31 lines (27 loc) · 1.09 KB
/
maze.py
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
from B111040_astar import ASTAR
from B111040_ids import IDS
class Maze :
def __init__(self):
self.map = [[1,0,1,1,1,1,1,1,1,1,1,1,1,1,1],
[1,0,1,0,1,0,0,0,0,0,0,0,1,0,1],
[1,0,1,0,1,0,1,1,1,1,1,0,0,0,1],
[1,0,1,0,1,0,1,0,0,0,1,1,1,0,1],
[1,0,0,0,1,0,1,0,1,0,1,0,1,0,1],
[1,1,1,0,1,0,1,1,1,0,1,0,1,0,1],
[1,0,0,0,1,0,0,0,0,0,1,0,0,0,1],
[1,0,1,1,1,1,1,1,0,1,1,0,1,0,1],
[1,0,1,0,0,0,0,0,0,1,1,0,1,0,1],
[1,0,1,0,1,1,1,1,1,1,0,0,1,0,1],
[1,0,1,0,1,0,0,0,0,1,0,1,1,1,1],
[1,0,0,0,0,1,0,1,0,1,0,0,0,0,1],
[1,1,1,1,0,1,0,1,1,1,1,1,1,0,1],
[1,0,0,0,0,1,0,0,0,0,0,0,0,0,1],
[1,1,1,1,1,1,1,1,1,1,1,1,1,0,1]]
self.start = [0,1]
self.goal = [14,13]
maze_astar = Maze()
maze_ids = Maze()
astarSolver = ASTAR()
astarSolver.Solve(maze_astar)
#idsSolver = IDS()
#idsSolver.Solve(maze_ids)