-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStructureDiagram.drawio
More file actions
142 lines (142 loc) · 16.1 KB
/
StructureDiagram.drawio
File metadata and controls
142 lines (142 loc) · 16.1 KB
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<mxfile host="app.diagrams.net" modified="2023-12-23T12:42:37.513Z" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" etag="2583YoWSyTCIeRRQR9n4" version="22.1.11" type="device">
<diagram name="Page-1" id="QPN-NADgP2TQv8uPVWXM">
<mxGraphModel dx="948" dy="1129" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="LMvlDKVRB5VP4BXyqXZd-1" value="" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="160" y="120" width="520" height="780" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-2" value="<h2>MACHINE</h2>" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;labelPosition=center;verticalLabelPosition=middle;fontColor=#3333FF;" vertex="1" parent="1">
<mxGeometry x="320" y="130" width="110" height="30" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-4" value="<h4><span style="font-weight: normal;"><font face="Courier New">AsteroidGame</font></span></h4>" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontStyle=0" vertex="1" parent="1">
<mxGeometry x="430" y="130" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-5" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="185" y="170" width="470" height="80" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-6" value="<h2><font face="Courier New" color="#3333ff">SETS &amp; CONSTANTS</font></h2>" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="190" y="170" width="190" height="30" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-7" value="<font face="Courier New">Direction, Status, MissionError</font>" style="rounded=0;textDirection=ltr;labelBorderColor=none;whiteSpace=wrap;html=1;fillColor=default;strokeColor=none;" vertex="1" parent="1">
<mxGeometry x="200" y="200" width="230" height="20" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-8" value="<font face="Courier New">GRID, HOME_BASE, STAR_BASE, ASTEROID_POSITIONS, NORMAL_POWERCOST, WARP_POWERCOST, CRASH_POWERCOST, POWER_VALUES</font>" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="200" y="220" width="470" height="30" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-9" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="185" y="280" width="470" height="190" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-10" value="<h2><font color="#3333ff" face="Courier New"><b>PROPERTIES</b></font></h2>" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="230" y="280" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-11" value="<font face="Courier New">GRID = (1..12) * (1..7) &amp;</font>" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="200" y="300" width="460" height="20" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-12" value="<font face="Courier New">HOME_BASE = (1, 1) &amp;</font>" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="200" y="320" width="460" height="20" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-13" value="<font face="Courier New">STAR_BASE = (6, 4) &amp;</font>" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="200" y="340" width="460" height="20" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-15" value="<font face="Courier New">ASTEROID_POSITIONS = {(3,2),(3,5),(5,4),(6,7),(7,1),(7,7),(8,3),(10,6),(11,2),(12,5)} &amp;</font>" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="200" y="360" width="460" height="30" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-16" value="<font face="Courier New">NORMAL_POWERCOST = 5 &amp;</font>" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="200" y="390" width="460" height="20" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-17" value="<font face="Courier New">WARP_POWERCOST = 20 &amp;</font>" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="200" y="410" width="460" height="20" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-18" value="<font face="Courier New">CRASH_POWERCOST = 10 &amp;</font>" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="200" y="430" width="460" height="20" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-19" value="<font face="Courier New">POWER_VALUES = {(100), (125), (150), (175), (200)}</font>" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="200" y="450" width="460" height="20" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-20" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="185" y="500" width="470" height="100" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-21" value="<h2><b><font color="#3333ff" face="Courier New">VARIABLES</font></b></h2>" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="190" y="500" width="130" height="30" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-23" value="<h4><font style="font-weight: normal;" face="Courier New">SpaceshipPosition, NextPosition, Asteroids, AsteroidCollissions,</font></h4>" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="190" y="530" width="470" height="20" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-24" value="<h4><font face="Courier New"><span style="font-weight: 400;">PowerAmount, HorizontalPosition, VerticalPosition, RouteTaken,</span></font></h4>" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="190" y="550" width="460" height="20" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-26" value="<h4><font face="Courier New"><span style="font-weight: 400;">GameActive</span></font></h4>" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="190" y="570" width="460" height="20" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-27" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="185" y="630" width="470" height="220" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-28" value="<h2><b><font color="#3333ff" face="Courier New">INVARIANT</font></b></h2>" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="190" y="630" width="130" height="30" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-29" value="<font face="Courier New">SpaceshipPosition : GRID &amp;<br></font>" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="200" y="660" width="460" height="20" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-30" value="<font face="Courier New">NextPosition : GRID &amp;<br></font>" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="200" y="680" width="460" height="20" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-31" value="<font face="Courier New">Asteroids &lt;: ASTEROID_POSITIONS &amp;<br></font>" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="200" y="700" width="460" height="20" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-32" value="<font face="Courier New">AsteroidCollissions : NAT &amp;&nbsp;<br></font>" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="200" y="720" width="460" height="20" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-33" value="<font face="Courier New">PowerAmount : NAT &amp;<br></font>" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="200" y="740" width="460" height="20" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-34" value="<font face="Courier New">HorizontalPosition : NAT1 &amp; HorizontalPosition &lt;= 12<br></font>" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="200" y="760" width="460" height="20" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-35" value="<font face="Courier New">VerticalPosition : NAT1 &amp; VerticalPosition &lt;= 7 &amp;<br></font>" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="200" y="780" width="460" height="20" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-36" value="<font face="Courier New">RouteTaken : seq(GRID) &amp;<br></font>" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="200" y="800" width="460" height="20" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-37" value="<font face="Courier New">GameActive : NAT &amp; GameActive &lt;= 1<br></font>" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="200" y="820" width="460" height="20" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-38" value="" style="shape=or;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="680" y="440" width="40" height="80" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-40" value="<h3><font style="font-weight: normal;" face="Courier New">NewGame</font></h3>" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="730" y="470" width="60" height="20" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-41" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="1" source="LMvlDKVRB5VP4BXyqXZd-40" target="LMvlDKVRB5VP4BXyqXZd-40">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-42" value="" style="shape=or;whiteSpace=wrap;html=1;rotation=-180;" vertex="1" parent="1">
<mxGeometry x="120" y="210" width="40" height="80" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-43" value="<h3><font style="font-weight: normal;" face="Courier New">NormalMove</font></h3>" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="30" y="240" width="60" height="20" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-44" value="" style="shape=or;whiteSpace=wrap;html=1;rotation=-180;" vertex="1" parent="1">
<mxGeometry x="120" y="450" width="40" height="80" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-45" value="<h3><font style="font-weight: normal;" face="Courier New">WarpDrive</font></h3>" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="30" y="480" width="60" height="20" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-46" value="" style="shape=or;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="680" y="750" width="40" height="80" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-47" value="<h3><font style="font-weight: normal;" face="Courier New">RegionsVisited</font></h3>" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="730" y="780" width="60" height="20" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-50" value="" style="shape=or;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="680" y="195" width="40" height="80" as="geometry" />
</mxCell>
<mxCell id="LMvlDKVRB5VP4BXyqXZd-51" value="<h3><font style="font-weight: normal;" face="Courier New">MissionStatus</font></h3>" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="730" y="225" width="60" height="20" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>