-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNumber Guessing.drawio
More file actions
129 lines (129 loc) · 10.6 KB
/
Number Guessing.drawio
File metadata and controls
129 lines (129 loc) · 10.6 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
<mxfile host="app.diagrams.net" modified="2021-01-07T20:08:40.532Z" agent="5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.50 Safari/537.36 Edg/88.0.705.29" etag="U4sxSDj9w2pA6QR2fHu4" version="14.1.8" type="github">
<diagram id="LIrmTvzrBxP5Ad0zJzQT" name="Page-1">
<mxGraphModel dx="2214" dy="1194" 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="Gj06fagSKXIr3O6N61Ik-3" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="Gj06fagSKXIr3O6N61Ik-1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="420" y="160" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="Gj06fagSKXIr3O6N61Ik-1" value="Start" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;" vertex="1" parent="1">
<mxGeometry x="380" y="40" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="Gj06fagSKXIr3O6N61Ik-7" value="hard" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="Gj06fagSKXIr3O6N61Ik-4" target="Gj06fagSKXIr3O6N61Ik-6">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="Gj06fagSKXIr3O6N61Ik-9" value="easy" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="Gj06fagSKXIr3O6N61Ik-4" target="Gj06fagSKXIr3O6N61Ik-8">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="Gj06fagSKXIr3O6N61Ik-4" value="

<span style="color: rgb(0, 0, 0); font-family: helvetica; font-size: 12px; font-style: normal; font-weight: 400; letter-spacing: normal; text-align: center; text-indent: 0px; text-transform: none; word-spacing: 0px; background-color: rgb(248, 249, 250); display: inline; float: none;">Ask the user of difficulty level</span>

" style="rhombus;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="370" y="160" width="100" height="100" as="geometry" />
</mxCell>
<mxCell id="Gj06fagSKXIr3O6N61Ik-12" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="Gj06fagSKXIr3O6N61Ik-6" target="Gj06fagSKXIr3O6N61Ik-11">
<mxGeometry relative="1" as="geometry">
<mxPoint x="250" y="370" as="targetPoint" />
<Array as="points">
<mxPoint x="240" y="330" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="Gj06fagSKXIr3O6N61Ik-6" value="Set the number of guesses to 5" style="whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="180" y="180" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="Gj06fagSKXIr3O6N61Ik-13" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="Gj06fagSKXIr3O6N61Ik-8" target="Gj06fagSKXIr3O6N61Ik-11">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="600" y="330" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="Gj06fagSKXIr3O6N61Ik-8" value="Set the number of guesses to 10" style="whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="540" y="180" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="Gj06fagSKXIr3O6N61Ik-15" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="Gj06fagSKXIr3O6N61Ik-11" target="Gj06fagSKXIr3O6N61Ik-14">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="Gj06fagSKXIr3O6N61Ik-11" value="Choose a random number between 1 and 100" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="360" y="300" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="Gj06fagSKXIr3O6N61Ik-17" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="Gj06fagSKXIr3O6N61Ik-14" target="Gj06fagSKXIr3O6N61Ik-16">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="Gj06fagSKXIr3O6N61Ik-14" value="Ask the user to enter a guess" style="whiteSpace=wrap;html=1;rounded=0;" vertex="1" parent="1">
<mxGeometry x="360" y="420" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="Gj06fagSKXIr3O6N61Ik-19" value="Yes" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="Gj06fagSKXIr3O6N61Ik-16" target="Gj06fagSKXIr3O6N61Ik-18">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="Gj06fagSKXIr3O6N61Ik-21" value="No" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="Gj06fagSKXIr3O6N61Ik-16" target="Gj06fagSKXIr3O6N61Ik-20">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="Gj06fagSKXIr3O6N61Ik-16" value="Is the guess equal to the chosen number" style="rhombus;whiteSpace=wrap;html=1;rounded=0;" vertex="1" parent="1">
<mxGeometry x="370" y="530" width="100" height="100" as="geometry" />
</mxCell>
<mxCell id="Gj06fagSKXIr3O6N61Ik-36" style="edgeStyle=elbowEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.4;entryY=0.053;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" source="Gj06fagSKXIr3O6N61Ik-18" target="Gj06fagSKXIr3O6N61Ik-35">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="Gj06fagSKXIr3O6N61Ik-18" value="Print the number is guessed. Win" style="whiteSpace=wrap;html=1;rounded=0;" vertex="1" parent="1">
<mxGeometry x="560" y="550" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="Gj06fagSKXIr3O6N61Ik-23" value="Yes" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="Gj06fagSKXIr3O6N61Ik-20" target="Gj06fagSKXIr3O6N61Ik-22">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="Gj06fagSKXIr3O6N61Ik-25" value="No" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="Gj06fagSKXIr3O6N61Ik-20" target="Gj06fagSKXIr3O6N61Ik-24">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="Gj06fagSKXIr3O6N61Ik-20" value="Is the guess lower" style="rhombus;whiteSpace=wrap;html=1;rounded=0;" vertex="1" parent="1">
<mxGeometry x="380" y="670" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="Gj06fagSKXIr3O6N61Ik-28" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.75;entryDx=0;entryDy=0;" edge="1" parent="1" source="Gj06fagSKXIr3O6N61Ik-22" target="Gj06fagSKXIr3O6N61Ik-26">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="260" y="935" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="Gj06fagSKXIr3O6N61Ik-22" value="Print the number is to low" style="whiteSpace=wrap;html=1;rounded=0;" vertex="1" parent="1">
<mxGeometry x="190" y="680" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="Gj06fagSKXIr3O6N61Ik-27" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="Gj06fagSKXIr3O6N61Ik-24" target="Gj06fagSKXIr3O6N61Ik-26">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="Gj06fagSKXIr3O6N61Ik-24" value="Print the number is to high" style="whiteSpace=wrap;html=1;rounded=0;" vertex="1" parent="1">
<mxGeometry x="360" y="780" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="Gj06fagSKXIr3O6N61Ik-30" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="Gj06fagSKXIr3O6N61Ik-26" target="Gj06fagSKXIr3O6N61Ik-29">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="Gj06fagSKXIr3O6N61Ik-26" value="Decrease the number of guesses for 1" style="whiteSpace=wrap;html=1;rounded=0;" vertex="1" parent="1">
<mxGeometry x="360" y="890" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="Gj06fagSKXIr3O6N61Ik-31" value="No" style="edgeStyle=elbowEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="Gj06fagSKXIr3O6N61Ik-29">
<mxGeometry relative="1" as="geometry">
<mxPoint x="420" y="380" as="targetPoint" />
<Array as="points">
<mxPoint x="150" y="700" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="Gj06fagSKXIr3O6N61Ik-34" value="" style="edgeStyle=elbowEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="Gj06fagSKXIr3O6N61Ik-29" target="Gj06fagSKXIr3O6N61Ik-33">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="Gj06fagSKXIr3O6N61Ik-29" value="Is the number of guesses equal to 0" style="rhombus;whiteSpace=wrap;html=1;rounded=0;" vertex="1" parent="1">
<mxGeometry x="380" y="1000" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="Gj06fagSKXIr3O6N61Ik-37" style="edgeStyle=elbowEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="Gj06fagSKXIr3O6N61Ik-33" target="Gj06fagSKXIr3O6N61Ik-35">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="Gj06fagSKXIr3O6N61Ik-33" value="Print the number is not guessed. Lose!" style="whiteSpace=wrap;html=1;rounded=0;" vertex="1" parent="1">
<mxGeometry x="580" y="1010" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="Gj06fagSKXIr3O6N61Ik-35" value="End the game" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;" vertex="1" parent="1">
<mxGeometry x="590" y="750" width="80" height="80" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>