-
Notifications
You must be signed in to change notification settings - Fork 0
/
Robot.dot
95 lines (49 loc) · 9.18 KB
/
Robot.dot
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
digraph history {
graph [nodesep=1.5, ranksep=1.5];
0 [shape=box, color="#99BF38", fontsize=12, penwidth=2, label="entranceSquare = (1\|-\>1),exitSquare = (1\|-\>5),mazeBoundry = \{(1\|-\>1),(1\|-\>2),(1\|-\>3),(1\|-\>4),(1\|-\>5),(2\|-\>1),(2\|-\>2),(2\|-\>3),(2\|-\>4),(2\|-\>5),(3\|-\>1),(3\|-\>2),(3\|-\>3),(3\|-\>4),(3\|-\>5),(4\|-\>1),(4\|-\>2),(4\|-\>3),(4\|-\>4),(4\|-\>5),(5\|-\>1),(5\|-\>2),(5\|-\>3),(5\|-\>4),(5\|-\>5),(6\|-\>1),(6\|-\>2),(6\|-\>3),(6\|-\>4),(6\|-\>5),(7\|-\>1),(7\|-\>2),(7\|-\>3),(7\|-\>4),(7\|-\>5)\},\ninternalWalls = \{(1\|-\>3),(2\|-\>1),(2\|-\>3),(2\|-\>5),(3\|-\>3),(4\|-\>2),(4\|-\>3),(4\|-\>4),(6\|-\>1),(6\|-\>2),(6\|-\>4),(7\|-\>4)\},validSquares = \{(1\|-\>1),(1\|-\>2),(1\|-\>4),(1\|-\>5),(2\|-\>2),(2\|-\>4),(3\|-\>1),(3\|-\>2),(3\|-\>4),(3\|-\>5),(4\|-\>1),(4\|-\>5),(5\|-\>1),(5\|-\>2),(5\|-\>3),(5\|-\>4),(5\|-\>5),(6\|-\>3),(6\|-\>5),(7\|-\>1),(7\|-\>2),(7\|-\>3),(7\|-\>5)\}"];
1 [shape=box, color="#99BF38", fontsize=12, penwidth=2, label="repeated (2)\ncoordX = 1,coordY = 1,squareCord = (1\|-\>1),\nvisitedPath = []"];
2 [shape=box, color="#99BF38", fontsize=12, penwidth=2, label="coordX = 1,coordY = 2,squareCord = (1\|-\>2),\nvisitedPath(1) = (1\|-\>1)"];
17 [shape=box, color="#99BF38", fontsize=12, penwidth=2, label="coordX = 3,coordY = 4,squareCord = (3\|-\>4),\nvisitedPath(1) = (1\|-\>1)"];
25 [shape=box, color="#99BF38", fontsize=12, penwidth=2, label="coordX = 2,coordY = 2,squareCord = (2\|-\>2),\nvisitedPath(1) = (1\|-\>1),visitedPath(2) = (1\|-\>2)"];
48 [shape=box, color="#99BF38", fontsize=12, penwidth=2, label="coordX = 3,coordY = 2,squareCord = (3\|-\>2),\nvisitedPath(1) = (1\|-\>1),visitedPath(2) = (1\|-\>2),visitedPath(3) = (2\|-\>2)"];
71 [shape=box, color="#99BF38", fontsize=12, penwidth=2, label="coordX = 3,coordY = 1,squareCord = (3\|-\>1),\nvisitedPath(1) = (1\|-\>1),visitedPath(2) = (1\|-\>2),visitedPath(3) = (2\|-\>2),\nvisitedPath(4) = (3\|-\>2)"];
95 [shape=box, color="#99BF38", fontsize=12, penwidth=2, label="coordX = 4,coordY = 1,squareCord = (4\|-\>1),\nvisitedPath(1) = (1\|-\>1),visitedPath(2) = (1\|-\>2),visitedPath(3) = (2\|-\>2),\nvisitedPath(4) = (3\|-\>2),visitedPath(5) = (3\|-\>1)"];
117 [shape=box, color="#99BF38", fontsize=12, penwidth=2, label="coordX = 5,coordY = 1,squareCord = (5\|-\>1),\nvisitedPath(1) = (1\|-\>1),visitedPath(2) = (1\|-\>2),visitedPath(3) = (2\|-\>2),\nvisitedPath(4) = (3\|-\>2),visitedPath(5) = (3\|-\>1),visitedPath(6) = (4\|-\>1)"];
140 [shape=box, color="#99BF38", fontsize=12, penwidth=2, label="coordX = 5,coordY = 2,squareCord = (5\|-\>2),\nvisitedPath(1) = (1\|-\>1),visitedPath(2) = (1\|-\>2),visitedPath(3) = (2\|-\>2),\nvisitedPath(4) = (3\|-\>2),visitedPath(5) = (3\|-\>1),visitedPath(6) = (4\|-\>1),\nvisitedPath(7) = (5\|-\>1)"];
163 [shape=box, color="#99BF38", fontsize=12, penwidth=2, label="coordX = 5,coordY = 3,squareCord = (5\|-\>3),\nvisitedPath(1) = (1\|-\>1),visitedPath(2) = (1\|-\>2),visitedPath(3) = (2\|-\>2),\nvisitedPath(4) = (3\|-\>2),visitedPath(5) = (3\|-\>1),visitedPath(6) = (4\|-\>1),\nvisitedPath(7) = (5\|-\>1),visitedPath(8) = (5\|-\>2)"];
186 [shape=box, color="#99BF38", fontsize=12, penwidth=2, label="coordX = 5,coordY = 4,squareCord = (5\|-\>4),\nvisitedPath(1) = (1\|-\>1),visitedPath(2) = (1\|-\>2),visitedPath(3) = (2\|-\>2),\nvisitedPath(4) = (3\|-\>2),visitedPath(5) = (3\|-\>1),visitedPath(6) = (4\|-\>1),\nvisitedPath(7) = (5\|-\>1),visitedPath(8) = (5\|-\>2),visitedPath(9) = (5\|-\>3)"];
209 [shape=box, color="#99BF38", fontsize=12, penwidth=2, label="coordX = 5,coordY = 5,squareCord = (5\|-\>5),\nvisitedPath(1) = (1\|-\>1),visitedPath(2) = (1\|-\>2),visitedPath(3) = (2\|-\>2),\nvisitedPath(4) = (3\|-\>2),visitedPath(5) = (3\|-\>1),visitedPath(6) = (4\|-\>1),\nvisitedPath(7) = (5\|-\>1),visitedPath(8) = (5\|-\>2),visitedPath(9) = (5\|-\>3),\nvisitedPath(10) = (5\|-\>4)"];
234 [shape=box, color="#99BF38", fontsize=12, penwidth=2, label="coordX = 4,coordY = 5,squareCord = (4\|-\>5),\nvisitedPath(1) = (1\|-\>1),visitedPath(2) = (1\|-\>2),visitedPath(3) = (2\|-\>2),\nvisitedPath(4) = (3\|-\>2),visitedPath(5) = (3\|-\>1),visitedPath(6) = (4\|-\>1),\nvisitedPath(7) = (5\|-\>1),visitedPath(8) = (5\|-\>2),visitedPath(9) = (5\|-\>3),\nvisitedPath(10) = (5\|-\>4),visitedPath(11) = (5\|-\>5)"];
256 [shape=box, color="#99BF38", fontsize=12, penwidth=2, label="coordX = 3,coordY = 5,squareCord = (3\|-\>5),\nvisitedPath(1) = (1\|-\>1),visitedPath(2) = (1\|-\>2),visitedPath(3) = (2\|-\>2),\nvisitedPath(4) = (3\|-\>2),visitedPath(5) = (3\|-\>1),visitedPath(6) = (4\|-\>1),\nvisitedPath(7) = (5\|-\>1),visitedPath(8) = (5\|-\>2),visitedPath(9) = (5\|-\>3),\nvisitedPath(10) = (5\|-\>4),visitedPath(11) = (5\|-\>5),visitedPath(12) = (4\|-\>5)"];
279 [shape=box, color="#99BF38", fontsize=12, penwidth=2, label="coordX = 3,coordY = 4,squareCord = (3\|-\>4),\nvisitedPath(1) = (1\|-\>1),visitedPath(2) = (1\|-\>2),visitedPath(3) = (2\|-\>2),\nvisitedPath(4) = (3\|-\>2),visitedPath(5) = (3\|-\>1),visitedPath(6) = (4\|-\>1),\nvisitedPath(7) = (5\|-\>1),visitedPath(8) = (5\|-\>2),visitedPath(9) = (5\|-\>3),\nvisitedPath(10) = (5\|-\>4),visitedPath(11) = (5\|-\>5),visitedPath(12) = (4\|-\>5),\nvisitedPath(13) = (3\|-\>5)"];
302 [shape=box, color="#99BF38", fontsize=12, penwidth=2, label="coordX = 2,coordY = 4,squareCord = (2\|-\>4),\nvisitedPath(1) = (1\|-\>1),visitedPath(2) = (1\|-\>2),visitedPath(3) = (2\|-\>2),\nvisitedPath(4) = (3\|-\>2),visitedPath(5) = (3\|-\>1),visitedPath(6) = (4\|-\>1),\nvisitedPath(7) = (5\|-\>1),visitedPath(8) = (5\|-\>2),visitedPath(9) = (5\|-\>3),\nvisitedPath(10) = (5\|-\>4),visitedPath(11) = (5\|-\>5),visitedPath(12) = (4\|-\>5),\nvisitedPath(13) = (3\|-\>5),visitedPath(14) = (3\|-\>4)"];
325 [shape=box, color="#99BF38", fontsize=12, penwidth=2, label="coordX = 1,coordY = 4,squareCord = (1\|-\>4),\nvisitedPath(1) = (1\|-\>1),visitedPath(2) = (1\|-\>2),visitedPath(3) = (2\|-\>2),\nvisitedPath(4) = (3\|-\>2),visitedPath(5) = (3\|-\>1),visitedPath(6) = (4\|-\>1),\nvisitedPath(7) = (5\|-\>1),visitedPath(8) = (5\|-\>2),visitedPath(9) = (5\|-\>3),\nvisitedPath(10) = (5\|-\>4),visitedPath(11) = (5\|-\>5),visitedPath(12) = (4\|-\>5),\nvisitedPath(13) = (3\|-\>5),visitedPath(14) = (3\|-\>4),visitedPath(15) = (2\|-\>4)"];
347 [shape=box, color="#99BF38", fontsize=12, penwidth=2, label="coordX = 1,coordY = 5,squareCord = (1\|-\>5),\nvisitedPath(1) = (1\|-\>1),visitedPath(2) = (1\|-\>2),visitedPath(3) = (2\|-\>2),\nvisitedPath(4) = (3\|-\>2),visitedPath(5) = (3\|-\>1),visitedPath(6) = (4\|-\>1),\nvisitedPath(7) = (5\|-\>1),visitedPath(8) = (5\|-\>2),visitedPath(9) = (5\|-\>3),\nvisitedPath(10) = (5\|-\>4),visitedPath(11) = (5\|-\>5),visitedPath(12) = (4\|-\>5),\nvisitedPath(13) = (3\|-\>5),visitedPath(14) = (3\|-\>4),visitedPath(15) = (2\|-\>4),\nvisitedPath(16) = (1\|-\>4)"];
372 [shape=box, color="#99BF38", fontsize=12, penwidth=2, label="coordX = 2,coordY = 4,squareCord = (2\|-\>4),\nvisitedPath(1) = (1\|-\>1),visitedPath(2) = (3\|-\>4)"];
394 [shape=box, color="#99BF38", fontsize=12, penwidth=2, label="coordX = 1,coordY = 4,squareCord = (1\|-\>4),\nvisitedPath(1) = (1\|-\>1),visitedPath(2) = (3\|-\>4),visitedPath(3) = (2\|-\>4)"];
415 [shape=doubleoctagon, color="#99BF38", fontsize=12, penwidth=2, label="coordX = 1,coordY = 5,squareCord = (1\|-\>5),\nvisitedPath(1) = (1\|-\>1),visitedPath(2) = (3\|-\>4),visitedPath(3) = (2\|-\>4),\nvisitedPath(4) = (1\|-\>4)"];
root [shape=invtriangle, color="#99BF38", fontsize=12, penwidth=2, label="root"];
root -> 0 [style = dotted, color = black, label="SETUP_CONSTANTS", fontsize=12];
0 -> 1 [color = "#006391", label="INITIALISATION", fontsize=12];
1 -> 2 [color = "#006391", label="MoveNorth--\>Move_Viable", fontsize=12];
2 -> 25 [color = "#006391", label="MoveEast--\>Move_Viable", fontsize=12];
25 -> 48 [color = "#006391", label="MoveEast--\>Move_Viable", fontsize=12];
48 -> 71 [color = "#006391", label="MoveSouth--\>Move_Viable", fontsize=12];
71 -> 95 [color = "#006391", label="MoveEast--\>Move_Viable", fontsize=12];
95 -> 117 [color = "#006391", label="MoveEast--\>Move_Viable", fontsize=12];
117 -> 140 [color = "#006391", label="MoveNorth--\>Move_Viable", fontsize=12];
140 -> 163 [color = "#006391", label="MoveNorth--\>Move_Viable", fontsize=12];
163 -> 186 [color = "#006391", label="MoveNorth--\>Move_Viable", fontsize=12];
186 -> 209 [color = "#006391", label="MoveNorth--\>Move_Viable", fontsize=12];
209 -> 234 [color = "#006391", label="MoveWest--\>Move_Viable", fontsize=12];
234 -> 256 [color = "#006391", label="MoveWest--\>Move_Viable", fontsize=12];
256 -> 279 [color = "#006391", label="MoveSouth--\>Move_Viable", fontsize=12];
279 -> 302 [color = "#006391", label="MoveWest--\>Move_Viable", fontsize=12];
302 -> 325 [color = "#006391", label="MoveWest--\>Move_Viable", fontsize=12];
325 -> 347 [color = "#006391", label="MoveNorth--\>Move_Viable", fontsize=12];
347 -> 1 [color = "#006391", label="Reset", fontsize=12];
1 -> 17 [color = "#006391", label="Teleport(3,4)--\>Teleport_Viable", fontsize=12];
17 -> 372 [color = "#006391", label="MoveWest--\>Move_Viable", fontsize=12];
372 -> 394 [color = "#006391", label="MoveWest--\>Move_Viable", fontsize=12];
394 -> 415 [color = "#006391", label="MoveNorth--\>Move_Viable", fontsize=12];
}