-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAlgorithm.drawio
189 lines (189 loc) · 15.3 KB
/
Algorithm.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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<mxfile host="65bd71144e">
<diagram name="Page-1" id="Oq93helmBUzQH3X7PvtH">
<mxGraphModel dx="2007" dy="316" 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="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="CPIXNCiNqdC7Uxq2pn5A-4" value="" style="endArrow=classic;html=1;rounded=0;exitX=0;exitY=0.5;exitDx=0;exitDy=0;" parent="1" source="CPIXNCiNqdC7Uxq2pn5A-8" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="410" y="439.5" as="sourcePoint"/>
<mxPoint x="326" y="439.5" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="CPIXNCiNqdC7Uxq2pn5A-5" value="True" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
<mxGeometry x="340" y="400" width="60" height="30" as="geometry"/>
</mxCell>
<mxCell id="CPIXNCiNqdC7Uxq2pn5A-6" value="False" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
<mxGeometry x="520" y="510" width="60" height="30" as="geometry"/>
</mxCell>
<mxCell id="CPIXNCiNqdC7Uxq2pn5A-42" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="CPIXNCiNqdC7Uxq2pn5A-8" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="495" y="690" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="CPIXNCiNqdC7Uxq2pn5A-8" value="Check if letter exists in the target word" style="rhombus;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="420" y="360" width="150" height="160" as="geometry"/>
</mxCell>
<mxCell id="CPIXNCiNqdC7Uxq2pn5A-11" value="Is it in the correct position&nbsp;<br>/ index&nbsp;" style="rhombus;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="170" y="360" width="160" height="160" as="geometry"/>
</mxCell>
<mxCell id="CPIXNCiNqdC7Uxq2pn5A-12" value="True" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
<mxGeometry x="80" y="400" width="60" height="30" as="geometry"/>
</mxCell>
<mxCell id="CPIXNCiNqdC7Uxq2pn5A-13" value="" style="endArrow=classic;html=1;rounded=0;exitX=0;exitY=0.5;exitDx=0;exitDy=0;" parent="1" source="CPIXNCiNqdC7Uxq2pn5A-11" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="460" y="560" as="sourcePoint"/>
<mxPoint x="60" y="440" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="CPIXNCiNqdC7Uxq2pn5A-14" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="1" source="CPIXNCiNqdC7Uxq2pn5A-11" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="240" y="580" as="sourcePoint"/>
<mxPoint x="250" y="630" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="CPIXNCiNqdC7Uxq2pn5A-15" value="False" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
<mxGeometry x="260" y="550" width="60" height="30" as="geometry"/>
</mxCell>
<mxCell id="CPIXNCiNqdC7Uxq2pn5A-16" value="Output details notifying user of this&nbsp;" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;" parent="1" vertex="1">
<mxGeometry x="130" y="630" width="240" height="110" as="geometry"/>
</mxCell>
<mxCell id="CPIXNCiNqdC7Uxq2pn5A-17" value="Output details notifying user of this&nbsp;" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;" parent="1" vertex="1">
<mxGeometry x="-190" y="570" width="240" height="110" as="geometry"/>
</mxCell>
<mxCell id="CPIXNCiNqdC7Uxq2pn5A-20" value="User Input / Guess" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;" parent="1" vertex="1">
<mxGeometry x="397.5" y="240" width="195" height="80" as="geometry"/>
</mxCell>
<mxCell id="CPIXNCiNqdC7Uxq2pn5A-22" value="Start" style="ellipse;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="435" y="90" width="120" height="80" as="geometry"/>
</mxCell>
<mxCell id="CPIXNCiNqdC7Uxq2pn5A-23" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="CPIXNCiNqdC7Uxq2pn5A-22" target="CPIXNCiNqdC7Uxq2pn5A-20" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="490" y="240" as="sourcePoint"/>
<mxPoint x="540" y="190" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="CPIXNCiNqdC7Uxq2pn5A-24" value="" style="endArrow=classic;html=1;rounded=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="1" source="CPIXNCiNqdC7Uxq2pn5A-20" target="CPIXNCiNqdC7Uxq2pn5A-8" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="490" y="310" as="sourcePoint"/>
<mxPoint x="540" y="260" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="CPIXNCiNqdC7Uxq2pn5A-30" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="CPIXNCiNqdC7Uxq2pn5A-28" target="CPIXNCiNqdC7Uxq2pn5A-20" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="800" y="120" as="targetPoint"/>
<Array as="points">
<mxPoint x="495" y="690"/>
<mxPoint x="801" y="690"/>
<mxPoint x="801" y="280"/>
</Array>
</mxGeometry>
</mxCell>
<mxCell id="CPIXNCiNqdC7Uxq2pn5A-28" value="Decrease MAX_TRIES by 1" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="360" y="950" width="240" height="110" as="geometry"/>
</mxCell>
<mxCell id="CPIXNCiNqdC7Uxq2pn5A-31" value="Decrease MAX_TRIES by 1" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="-520" y="385" width="240" height="110" as="geometry"/>
</mxCell>
<mxCell id="CPIXNCiNqdC7Uxq2pn5A-34" value="while MAX_TRIES &gt; 0" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="-520" y="620" width="240" height="110" as="geometry"/>
</mxCell>
<mxCell id="CPIXNCiNqdC7Uxq2pn5A-35" value="" style="curved=1;endArrow=classic;html=1;rounded=0;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="CPIXNCiNqdC7Uxq2pn5A-16" target="CPIXNCiNqdC7Uxq2pn5A-34" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="130" y="810" as="sourcePoint"/>
<mxPoint x="180" y="760" as="targetPoint"/>
<Array as="points">
<mxPoint x="30" y="890"/>
</Array>
</mxGeometry>
</mxCell>
<mxCell id="CPIXNCiNqdC7Uxq2pn5A-36" value="" style="curved=1;endArrow=classic;html=1;rounded=0;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1.012;entryY=0.425;entryDx=0;entryDy=0;entryPerimeter=0;" parent="1" source="CPIXNCiNqdC7Uxq2pn5A-17" target="CPIXNCiNqdC7Uxq2pn5A-34" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="-200" y="590" as="sourcePoint"/>
<mxPoint x="-150" y="540" as="targetPoint"/>
<Array as="points">
<mxPoint x="-210" y="540"/>
</Array>
</mxGeometry>
</mxCell>
<mxCell id="CPIXNCiNqdC7Uxq2pn5A-37" value="" style="curved=1;endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="CPIXNCiNqdC7Uxq2pn5A-34" target="CPIXNCiNqdC7Uxq2pn5A-28" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="-30" y="740" as="sourcePoint"/>
<mxPoint x="20" y="690" as="targetPoint"/>
<Array as="points">
<mxPoint x="-60" y="960"/>
</Array>
</mxGeometry>
</mxCell>
<mxCell id="CPIXNCiNqdC7Uxq2pn5A-39" value="" style="curved=1;endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" parent="1" source="CPIXNCiNqdC7Uxq2pn5A-34" target="CPIXNCiNqdC7Uxq2pn5A-31" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="-430" y="590" as="sourcePoint"/>
<mxPoint x="-380" y="540" as="targetPoint"/>
<Array as="points">
<mxPoint x="-380" y="590"/>
<mxPoint x="-430" y="540"/>
</Array>
</mxGeometry>
</mxCell>
<mxCell id="CPIXNCiNqdC7Uxq2pn5A-40" value="True" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
<mxGeometry x="-470" y="551" width="60" height="30" as="geometry"/>
</mxCell>
<mxCell id="CPIXNCiNqdC7Uxq2pn5A-41" value="True" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
<mxGeometry x="290" y="921" width="60" height="30" as="geometry"/>
</mxCell>
<mxCell id="CPIXNCiNqdC7Uxq2pn5A-44" value="" style="endArrow=classic;html=1;rounded=0;" parent="1" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="500" y="690" as="sourcePoint"/>
<mxPoint x="570" y="690" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="CPIXNCiNqdC7Uxq2pn5A-45" value="False" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
<mxGeometry x="-610" y="660" width="60" height="30" as="geometry"/>
</mxCell>
<mxCell id="CPIXNCiNqdC7Uxq2pn5A-47" value="" style="curved=1;endArrow=classic;html=1;rounded=0;exitX=0;exitY=0.5;exitDx=0;exitDy=0;" parent="1" source="CPIXNCiNqdC7Uxq2pn5A-34" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="-620" y="800" as="sourcePoint"/>
<mxPoint x="-680" y="820" as="targetPoint"/>
<Array as="points">
<mxPoint x="-550" y="790"/>
<mxPoint x="-580" y="740"/>
<mxPoint x="-600" y="750"/>
<mxPoint x="-640" y="790"/>
</Array>
</mxGeometry>
</mxCell>
<mxCell id="CPIXNCiNqdC7Uxq2pn5A-48" value="Notify user they have lost" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;" parent="1" vertex="1">
<mxGeometry x="-760" y="821" width="180" height="100" as="geometry"/>
</mxCell>
<mxCell id="CPIXNCiNqdC7Uxq2pn5A-49" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.455;exitY=1.026;exitDx=0;exitDy=0;exitPerimeter=0;" parent="1" source="CPIXNCiNqdC7Uxq2pn5A-48" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="-680" y="990" as="sourcePoint"/>
<mxPoint x="-678" y="1010" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="CPIXNCiNqdC7Uxq2pn5A-50" value="End" style="ellipse;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="-740" y="1010" width="120" height="80" as="geometry"/>
</mxCell>
<mxCell id="CPIXNCiNqdC7Uxq2pn5A-51" value="" style="curved=1;endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="CPIXNCiNqdC7Uxq2pn5A-31" target="CPIXNCiNqdC7Uxq2pn5A-20" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="-360" y="360" as="sourcePoint"/>
<mxPoint x="-310" y="310" as="targetPoint"/>
<Array as="points">
<mxPoint x="-310" y="360"/>
<mxPoint x="-360" y="310"/>
</Array>
</mxGeometry>
</mxCell>
<mxCell id="CPIXNCiNqdC7Uxq2pn5A-52" value="Is every letter in the correct position" style="rhombus;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="-120" y="350" width="180" height="180" as="geometry"/>
</mxCell>
<mxCell id="CPIXNCiNqdC7Uxq2pn5A-53" value="Output details notifying user of this&nbsp;" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;" parent="1" vertex="1">
<mxGeometry x="375" y="540" width="240" height="110" as="geometry"/>
</mxCell>
<mxCell id="CPIXNCiNqdC7Uxq2pn5A-54" value="True" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
<mxGeometry x="-180" y="400" width="60" height="30" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>