-
Notifications
You must be signed in to change notification settings - Fork 0
/
ProgramFlowDiagram.drawio
150 lines (150 loc) · 13.8 KB
/
ProgramFlowDiagram.drawio
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
143
144
145
146
147
148
149
150
<mxfile host="app.diagrams.net" modified="2024-05-14T07:09:45.577Z" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36" etag="lQsPBaBGvRK-Z-RoTrrQ" version="24.4.0" type="device">
<diagram id="C5RBs43oDa-KdzZeNtuy" name="Page-1">
<mxGraphModel dx="1434" dy="746" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
<root>
<mxCell id="WIyWlLk6GJQsqaUBKTNV-0" />
<mxCell id="WIyWlLk6GJQsqaUBKTNV-1" parent="WIyWlLk6GJQsqaUBKTNV-0" />
<mxCell id="pJtX5P2fk--i68XaxxVI-7" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="WIyWlLk6GJQsqaUBKTNV-3" target="pJtX5P2fk--i68XaxxVI-6" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="WIyWlLk6GJQsqaUBKTNV-3" value="Init board" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;glass=0;strokeWidth=1;shadow=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="20" y="140" width="120" height="30" as="geometry" />
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="pJtX5P2fk--i68XaxxVI-0" target="WIyWlLk6GJQsqaUBKTNV-3" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-0" value="Start Game" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="40" y="40" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-10" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="pJtX5P2fk--i68XaxxVI-6" target="pJtX5P2fk--i68XaxxVI-8" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-6" value="Prompt for color" style="rounded=1;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="20" y="190" width="120" height="30" as="geometry" />
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-106" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="pJtX5P2fk--i68XaxxVI-8" target="pJtX5P2fk--i68XaxxVI-9" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-8" value="Display chess board<div>in current state</div>" style="rounded=1;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="20" y="240" width="120" height="40" as="geometry" />
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-13" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="pJtX5P2fk--i68XaxxVI-9" target="pJtX5P2fk--i68XaxxVI-12" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-9" value="Prompt for move" style="rounded=1;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="20" y="300" width="120" height="30" as="geometry" />
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-23" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="pJtX5P2fk--i68XaxxVI-12" target="pJtX5P2fk--i68XaxxVI-15" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-27" value="No" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="pJtX5P2fk--i68XaxxVI-23" vertex="1" connectable="0">
<mxGeometry x="-0.0909" y="-1" relative="1" as="geometry">
<mxPoint x="-5" y="-16" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-24" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="pJtX5P2fk--i68XaxxVI-12" target="pJtX5P2fk--i68XaxxVI-19" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-36" value="Yes" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="pJtX5P2fk--i68XaxxVI-24" vertex="1" connectable="0">
<mxGeometry x="-0.5135" y="-1" relative="1" as="geometry">
<mxPoint x="-19" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-12" value="Is current pos. occupied?" style="rhombus;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="27.5" y="350" width="105" height="77" as="geometry" />
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-107" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="pJtX5P2fk--i68XaxxVI-15" target="pJtX5P2fk--i68XaxxVI-9" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-15" value="Show warning" style="rounded=1;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="160" y="373.5" width="120" height="30" as="geometry" />
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-31" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="pJtX5P2fk--i68XaxxVI-19" target="pJtX5P2fk--i68XaxxVI-30" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-44" value="No" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="pJtX5P2fk--i68XaxxVI-31" vertex="1" connectable="0">
<mxGeometry x="-0.4" y="-1" relative="1" as="geometry">
<mxPoint x="-19" y="4" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-42" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="pJtX5P2fk--i68XaxxVI-19" target="pJtX5P2fk--i68XaxxVI-25" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-43" value="Yes" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="pJtX5P2fk--i68XaxxVI-42" vertex="1" connectable="0">
<mxGeometry x="0.44" y="-1" relative="1" as="geometry">
<mxPoint x="-6" y="-16" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-19" value="Is target pos. occupied?" style="rhombus;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="30" y="450" width="100" height="80" as="geometry" />
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-109" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="pJtX5P2fk--i68XaxxVI-25" target="pJtX5P2fk--i68XaxxVI-9" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-25" value="Show warning" style="rounded=1;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="160" y="475" width="120" height="30" as="geometry" />
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-33" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="pJtX5P2fk--i68XaxxVI-30" target="pJtX5P2fk--i68XaxxVI-32" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-34" value="No" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="pJtX5P2fk--i68XaxxVI-33" vertex="1" connectable="0">
<mxGeometry x="-0.35" y="2" relative="1" as="geometry">
<mxPoint x="7" y="-13" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-39" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="pJtX5P2fk--i68XaxxVI-30" target="pJtX5P2fk--i68XaxxVI-38" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-30" value="Is move allowed?" style="rhombus;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="40" y="553" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-110" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="pJtX5P2fk--i68XaxxVI-32" target="pJtX5P2fk--i68XaxxVI-9" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-32" value="Show warning" style="rounded=1;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="160" y="578" width="120" height="30" as="geometry" />
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-103" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="pJtX5P2fk--i68XaxxVI-38" target="pJtX5P2fk--i68XaxxVI-93" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-38" value="Inform user and make move" style="rounded=1;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="15" y="660" width="130" height="40" as="geometry" />
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-100" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="pJtX5P2fk--i68XaxxVI-93" target="pJtX5P2fk--i68XaxxVI-94" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-93" value="Switch color" style="rounded=1;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="20" y="720" width="120" height="30" as="geometry" />
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-101" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="pJtX5P2fk--i68XaxxVI-94" target="pJtX5P2fk--i68XaxxVI-8" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="420" y="780" as="targetPoint" />
<Array as="points">
<mxPoint x="360" y="820" />
<mxPoint x="360" y="260" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-102" value="Yes" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="pJtX5P2fk--i68XaxxVI-101" vertex="1" connectable="0">
<mxGeometry x="-0.28" y="-2" relative="1" as="geometry">
<mxPoint x="-212" y="117" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-104" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="pJtX5P2fk--i68XaxxVI-94" target="pJtX5P2fk--i68XaxxVI-95" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-105" value="No" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="pJtX5P2fk--i68XaxxVI-104" vertex="1" connectable="0">
<mxGeometry x="-0.5" y="-2" relative="1" as="geometry">
<mxPoint x="-18" y="5" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-94" value="User wants to continue?" style="rhombus;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="25" y="775" width="110" height="90" as="geometry" />
</mxCell>
<mxCell id="pJtX5P2fk--i68XaxxVI-95" value="End game" style="ellipse;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="20" y="890" width="120" height="80" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>