-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpig-game.drawio
More file actions
136 lines (136 loc) · 9.69 KB
/
pig-game.drawio
File metadata and controls
136 lines (136 loc) · 9.69 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
<mxfile host="app.diagrams.net" modified="2024-01-15T00:50:11.521Z" agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" etag="cfl7N_RfVg__tr8TptI-" version="22.1.18" type="device">
<diagram name="Page-1" id="52a04d89-c75d-2922-d76d-85b35f80e030">
<mxGraphModel dx="954" dy="565" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1100" pageHeight="850" background="none" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="fgKNWpF1K9tt8He6eIX7-1" value="User rolls dice" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#A02E12;fontColor=#ffffff;strokeColor=#6D1F00;" vertex="1" parent="1">
<mxGeometry x="20" y="80" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="fgKNWpF1K9tt8He6eIX7-3" value="Generate random dice roll" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="210" y="80" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="fgKNWpF1K9tt8He6eIX7-5" value="Display dice roll" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="400" y="80" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="fgKNWpF1K9tt8He6eIX7-6" value="Is it a 1 ?" style="rhombus;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="1">
<mxGeometry x="589" y="77" width="140" height="80" as="geometry" />
</mxCell>
<mxCell id="fgKNWpF1K9tt8He6eIX7-7" value="Add dice roll to current score" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="802" y="80" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="fgKNWpF1K9tt8He6eIX7-8" value="Display new score" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="993" y="80" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="fgKNWpF1K9tt8He6eIX7-9" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="140" y="109.5" as="sourcePoint" />
<mxPoint x="210" y="109.5" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="fgKNWpF1K9tt8He6eIX7-10" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="330" y="109.5" as="sourcePoint" />
<mxPoint x="400" y="109.5" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="fgKNWpF1K9tt8He6eIX7-11" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="729" y="116.5" as="sourcePoint" />
<mxPoint x="799" y="116.5" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="fgKNWpF1K9tt8He6eIX7-12" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="520" y="116.5" as="sourcePoint" />
<mxPoint x="590" y="116.5" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="fgKNWpF1K9tt8He6eIX7-13" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="922" y="116.5" as="sourcePoint" />
<mxPoint x="992" y="116.5" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="fgKNWpF1K9tt8He6eIX7-14" value="" style="endArrow=classic;html=1;rounded=0;strokeWidth=1;jumpSize=5;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="658.5" y="157" as="sourcePoint" />
<mxPoint x="660" y="240" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="fgKNWpF1K9tt8He6eIX7-15" value="User holds score" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#A02E12;fontColor=#ffffff;strokeColor=#6D1F00;" vertex="1" parent="1">
<mxGeometry x="20" y="240" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="fgKNWpF1K9tt8He6eIX7-16" value="Adds current score to total score" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="211" y="240" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="fgKNWpF1K9tt8He6eIX7-17" value="score &gt;=100 ?" style="rhombus;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="1">
<mxGeometry x="399" y="230" width="140" height="80" as="geometry" />
</mxCell>
<mxCell id="fgKNWpF1K9tt8He6eIX7-18" value="Switch player" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="609" y="240" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="fgKNWpF1K9tt8He6eIX7-20" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="469" y="310" as="sourcePoint" />
<mxPoint x="469" y="360" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="fgKNWpF1K9tt8He6eIX7-21" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="539" y="269.5" as="sourcePoint" />
<mxPoint x="609" y="269.5" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="fgKNWpF1K9tt8He6eIX7-22" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="330" y="269.5" as="sourcePoint" />
<mxPoint x="400" y="269.5" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="fgKNWpF1K9tt8He6eIX7-23" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="140" y="269.5" as="sourcePoint" />
<mxPoint x="210" y="269.5" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="fgKNWpF1K9tt8He6eIX7-24" value="Current player wins" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="409" y="360" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="fgKNWpF1K9tt8He6eIX7-25" value="User reset game" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#A02E12;fontColor=#ffffff;strokeColor=#6D1F00;" vertex="1" parent="1">
<mxGeometry x="30" y="480" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="fgKNWpF1K9tt8He6eIX7-26" value="Set all scores to 0" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="220" y="480" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="fgKNWpF1K9tt8He6eIX7-27" value="Set player 1 as starting player" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="409" y="480" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="fgKNWpF1K9tt8He6eIX7-28" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="150" y="510" as="sourcePoint" />
<mxPoint x="220" y="510" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="fgKNWpF1K9tt8He6eIX7-29" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="339" y="509.5" as="sourcePoint" />
<mxPoint x="409" y="509.5" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="fgKNWpF1K9tt8He6eIX7-30" value="No" style="text;strokeColor=none;align=center;fillColor=none;html=1;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="729" y="80" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="fgKNWpF1K9tt8He6eIX7-31" value="Yes" style="text;strokeColor=none;align=center;fillColor=none;html=1;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="589" y="180" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="fgKNWpF1K9tt8He6eIX7-32" value="Yes" style="text;strokeColor=none;align=center;fillColor=none;html=1;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="409" y="320" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="fgKNWpF1K9tt8He6eIX7-33" value="No" style="text;strokeColor=none;align=center;fillColor=none;html=1;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="539" y="237" width="60" height="30" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>