Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7c4ec77

Browse files
remarcmijstasel
authored andcommitted
Update GameOfLife diagram
1 parent 32ee8fd commit 7c4ec77

File tree

2 files changed

+52
-40
lines changed

2 files changed

+52
-40
lines changed

assets/GameOfLife.drawio

Lines changed: 52 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,75 @@
11
<mxfile host="Electron" agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/26.0.9 Chrome/128.0.6613.186 Electron/32.2.5 Safari/537.36" version="26.0.9">
22
<diagram name="Page-1" id="LaWHFWLeA8ltTFscaMyL">
3-
<mxGraphModel dx="928" dy="833" 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">
3+
<mxGraphModel dx="707" dy="566" 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">
44
<root>
55
<mxCell id="0" />
66
<mxCell id="1" parent="0" />
7-
<mxCell id="gm8WBRlXmR8NpAHpHh1z-33" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
8-
<mxGeometry x="367" y="747" width="120" height="90" as="geometry" />
7+
<mxCell id="gm8WBRlXmR8NpAHpHh1z-33" value="" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
8+
<mxGeometry x="180" y="746" width="327.5" height="90" as="geometry" />
99
</mxCell>
10-
<mxCell id="gm8WBRlXmR8NpAHpHh1z-27" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
11-
<mxGeometry x="361" y="740" width="120" height="90" as="geometry" />
10+
<mxCell id="gm8WBRlXmR8NpAHpHh1z-27" value="" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
11+
<mxGeometry x="170" y="740" width="330" height="90" as="geometry" />
1212
</mxCell>
13-
<mxCell id="gm8WBRlXmR8NpAHpHh1z-13" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
13+
<mxCell id="gm8WBRlXmR8NpAHpHh1z-13" value="" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
1414
<mxGeometry x="160" y="450" width="330" height="250" as="geometry" />
1515
</mxCell>
16-
<mxCell id="gm8WBRlXmR8NpAHpHh1z-20" 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;" edge="1" parent="1" source="gm8WBRlXmR8NpAHpHh1z-14" target="gm8WBRlXmR8NpAHpHh1z-15">
16+
<mxCell id="gm8WBRlXmR8NpAHpHh1z-20" style="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="1" source="gm8WBRlXmR8NpAHpHh1z-14" target="gm8WBRlXmR8NpAHpHh1z-15" edge="1">
1717
<mxGeometry relative="1" as="geometry" />
1818
</mxCell>
19-
<mxCell id="gm8WBRlXmR8NpAHpHh1z-14" value="update()" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
19+
<mxCell id="gm8WBRlXmR8NpAHpHh1z-14" value="update()" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
2020
<mxGeometry x="200" y="494" width="100" height="40" as="geometry" />
2121
</mxCell>
22-
<mxCell id="gm8WBRlXmR8NpAHpHh1z-24" 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="gm8WBRlXmR8NpAHpHh1z-15" target="gm8WBRlXmR8NpAHpHh1z-23">
22+
<mxCell id="gm8WBRlXmR8NpAHpHh1z-24" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="1" source="gm8WBRlXmR8NpAHpHh1z-15" target="gm8WBRlXmR8NpAHpHh1z-23" edge="1">
2323
<mxGeometry relative="1" as="geometry" />
2424
</mxCell>
25-
<mxCell id="gm8WBRlXmR8NpAHpHh1z-15" value="countLivingNeighbors()" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
26-
<mxGeometry x="180" y="574" width="140" height="40" as="geometry" />
25+
<mxCell id="gm8WBRlXmR8NpAHpHh1z-15" value="countLivingNeighbors()" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
26+
<mxGeometry x="286.5" y="574" width="140" height="40" as="geometry" />
2727
</mxCell>
28-
<mxCell id="gm8WBRlXmR8NpAHpHh1z-17" value="render()" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
29-
<mxGeometry x="365" y="499" width="100" height="40" as="geometry" />
28+
<mxCell id="gm8WBRlXmR8NpAHpHh1z-17" value="render()" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
29+
<mxGeometry x="384" y="499" width="100" height="40" as="geometry" />
3030
</mxCell>
31-
<mxCell id="gm8WBRlXmR8NpAHpHh1z-18" value="forEachCell(&amp;nbsp; &amp;nbsp;)" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
32-
<mxGeometry x="169" y="535" width="100" height="30" as="geometry" />
31+
<mxCell id="gm8WBRlXmR8NpAHpHh1z-23" value="isAlive()" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
32+
<mxGeometry x="306.5" y="644" width="100" height="40" as="geometry" />
3333
</mxCell>
34-
<mxCell id="gm8WBRlXmR8NpAHpHh1z-23" value="isAlive()" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
35-
<mxGeometry x="200" y="644" width="100" height="40" as="geometry" />
34+
<mxCell id="gm8WBRlXmR8NpAHpHh1z-25" value="" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
35+
<mxGeometry x="160" y="734" width="330" height="90" as="geometry" />
3636
</mxCell>
37-
<mxCell id="gm8WBRlXmR8NpAHpHh1z-25" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
38-
<mxGeometry x="355" y="734" width="120" height="90" as="geometry" />
37+
<mxCell id="gm8WBRlXmR8NpAHpHh1z-26" value="draw()" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
38+
<mxGeometry x="384.5" y="766" width="100" height="40" as="geometry" />
3939
</mxCell>
40-
<mxCell id="gm8WBRlXmR8NpAHpHh1z-26" value="draw()" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
41-
<mxGeometry x="365" y="766" width="100" height="40" as="geometry" />
42-
</mxCell>
43-
<mxCell id="gm8WBRlXmR8NpAHpHh1z-28" 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;" edge="1" parent="1" source="gm8WBRlXmR8NpAHpHh1z-17" target="gm8WBRlXmR8NpAHpHh1z-26">
40+
<mxCell id="gm8WBRlXmR8NpAHpHh1z-28" 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="1" source="gm8WBRlXmR8NpAHpHh1z-17" target="gm8WBRlXmR8NpAHpHh1z-26" edge="1">
4441
<mxGeometry relative="1" as="geometry">
4542
<mxPoint x="415" y="609" as="sourcePoint" />
4643
</mxGeometry>
4744
</mxCell>
48-
<mxCell id="gm8WBRlXmR8NpAHpHh1z-29" value="forEachCell(&amp;nbsp; &amp;nbsp;)" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
49-
<mxGeometry x="334" y="540" width="100" height="30" as="geometry" />
50-
</mxCell>
51-
<mxCell id="gm8WBRlXmR8NpAHpHh1z-30" value="class Cell" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
45+
<mxCell id="gm8WBRlXmR8NpAHpHh1z-30" value="class Cell" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
5246
<mxGeometry x="354" y="728" width="60" height="30" as="geometry" />
5347
</mxCell>
54-
<mxCell id="gm8WBRlXmR8NpAHpHh1z-31" value="class Grid" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
48+
<mxCell id="gm8WBRlXmR8NpAHpHh1z-31" value="class Grid" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
5549
<mxGeometry x="160" y="445" width="60" height="30" as="geometry" />
5650
</mxCell>
57-
<mxCell id="gm8WBRlXmR8NpAHpHh1z-34" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
51+
<mxCell id="gm8WBRlXmR8NpAHpHh1z-34" value="" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
5852
<mxGeometry x="160" y="190" width="330" height="220" as="geometry" />
5953
</mxCell>
60-
<mxCell id="gm8WBRlXmR8NpAHpHh1z-35" value="class Game" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
54+
<mxCell id="gm8WBRlXmR8NpAHpHh1z-35" value="class Game" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
6155
<mxGeometry x="160" y="185" width="70" height="30" as="geometry" />
6256
</mxCell>
63-
<mxCell id="gm8WBRlXmR8NpAHpHh1z-40" style="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;" edge="1" parent="1" source="gm8WBRlXmR8NpAHpHh1z-36" target="gm8WBRlXmR8NpAHpHh1z-14">
57+
<mxCell id="gm8WBRlXmR8NpAHpHh1z-40" style="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="1" source="gm8WBRlXmR8NpAHpHh1z-36" target="gm8WBRlXmR8NpAHpHh1z-14" edge="1">
6458
<mxGeometry relative="1" as="geometry" />
6559
</mxCell>
66-
<mxCell id="gm8WBRlXmR8NpAHpHh1z-41" style="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;" edge="1" parent="1" source="gm8WBRlXmR8NpAHpHh1z-36" target="gm8WBRlXmR8NpAHpHh1z-17">
60+
<mxCell id="gm8WBRlXmR8NpAHpHh1z-41" style="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="1" source="gm8WBRlXmR8NpAHpHh1z-36" target="gm8WBRlXmR8NpAHpHh1z-17" edge="1">
6761
<mxGeometry relative="1" as="geometry" />
6862
</mxCell>
69-
<mxCell id="gm8WBRlXmR8NpAHpHh1z-36" value="gameLoop()" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;glass=0;shadow=0;" vertex="1" parent="1">
63+
<mxCell id="gm8WBRlXmR8NpAHpHh1z-36" value="gameLoop()" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;glass=0;shadow=0;" parent="1" vertex="1">
7064
<mxGeometry x="275" y="310" width="100" height="40" as="geometry" />
7165
</mxCell>
72-
<mxCell id="gm8WBRlXmR8NpAHpHh1z-39" style="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;" edge="1" parent="1" source="gm8WBRlXmR8NpAHpHh1z-37" target="gm8WBRlXmR8NpAHpHh1z-36">
66+
<mxCell id="gm8WBRlXmR8NpAHpHh1z-39" style="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="1" source="gm8WBRlXmR8NpAHpHh1z-37" target="gm8WBRlXmR8NpAHpHh1z-36" edge="1">
7367
<mxGeometry relative="1" as="geometry" />
7468
</mxCell>
75-
<mxCell id="gm8WBRlXmR8NpAHpHh1z-37" value="start()" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
69+
<mxCell id="gm8WBRlXmR8NpAHpHh1z-37" value="start()" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
7670
<mxGeometry x="275" y="220" width="100" height="40" as="geometry" />
7771
</mxCell>
78-
<mxCell id="gm8WBRlXmR8NpAHpHh1z-38" value="" style="endArrow=none;html=1;rounded=0;edgeStyle=orthogonalEdgeStyle;curved=1;exitX=0.708;exitY=1.025;exitDx=0;exitDy=0;entryX=0.68;entryY=-0.009;entryDx=0;entryDy=0;dashed=1;targetPerimeterSpacing=1;endFill=1;startFill=1;startArrow=classic;exitPerimeter=0;entryPerimeter=0;" edge="1" parent="1" source="gm8WBRlXmR8NpAHpHh1z-36" target="gm8WBRlXmR8NpAHpHh1z-36">
72+
<mxCell id="gm8WBRlXmR8NpAHpHh1z-38" value="" style="endArrow=none;html=1;rounded=0;edgeStyle=orthogonalEdgeStyle;curved=1;exitX=0.708;exitY=1.025;exitDx=0;exitDy=0;entryX=0.68;entryY=-0.009;entryDx=0;entryDy=0;dashed=1;targetPerimeterSpacing=1;endFill=1;startFill=1;startArrow=classic;exitPerimeter=0;entryPerimeter=0;" parent="1" source="gm8WBRlXmR8NpAHpHh1z-36" target="gm8WBRlXmR8NpAHpHh1z-36" edge="1">
7973
<mxGeometry width="50" height="50" relative="1" as="geometry">
8074
<mxPoint x="395.76" y="360" as="sourcePoint" />
8175
<mxPoint x="445.76" y="310" as="targetPoint" />
@@ -87,19 +81,19 @@
8781
</Array>
8882
</mxGeometry>
8983
</mxCell>
90-
<mxCell id="gm8WBRlXmR8NpAHpHh1z-43" value="" style="endArrow=classic;html=1;rounded=0;entryX=0.669;entryY=0.019;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" target="gm8WBRlXmR8NpAHpHh1z-31">
84+
<mxCell id="gm8WBRlXmR8NpAHpHh1z-43" value="" style="endArrow=classic;html=1;rounded=0;entryX=0.669;entryY=0.019;entryDx=0;entryDy=0;entryPerimeter=0;" parent="1" target="gm8WBRlXmR8NpAHpHh1z-31" edge="1">
9185
<mxGeometry width="50" height="50" relative="1" as="geometry">
9286
<mxPoint x="200" y="409" as="sourcePoint" />
9387
<mxPoint x="200" y="440" as="targetPoint" />
9488
</mxGeometry>
9589
</mxCell>
96-
<mxCell id="gm8WBRlXmR8NpAHpHh1z-45" value="new" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
90+
<mxCell id="gm8WBRlXmR8NpAHpHh1z-45" value="new" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
9791
<mxGeometry x="156" y="410" width="60" height="30" as="geometry" />
9892
</mxCell>
99-
<mxCell id="gm8WBRlXmR8NpAHpHh1z-46" value="new" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
93+
<mxCell id="gm8WBRlXmR8NpAHpHh1z-46" value="new" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
10094
<mxGeometry x="340" y="700" width="60" height="30" as="geometry" />
10195
</mxCell>
102-
<mxCell id="gm8WBRlXmR8NpAHpHh1z-47" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.75;exitY=0;exitDx=0;exitDy=0;" edge="1" parent="1" source="gm8WBRlXmR8NpAHpHh1z-46">
96+
<mxCell id="gm8WBRlXmR8NpAHpHh1z-47" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.75;exitY=0;exitDx=0;exitDy=0;" parent="1" source="gm8WBRlXmR8NpAHpHh1z-46" edge="1">
10397
<mxGeometry width="50" height="50" relative="1" as="geometry">
10498
<mxPoint x="550" y="650" as="sourcePoint" />
10599
<mxPoint x="385" y="730" as="targetPoint" />
@@ -108,6 +102,24 @@
108102
</Array>
109103
</mxGeometry>
110104
</mxCell>
105+
<mxCell id="4BrPfXsI2hEZ4emKBVd3-1" value="liveAndLetDie()" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
106+
<mxGeometry x="167.5" y="766" width="100" height="40" as="geometry" />
107+
</mxCell>
108+
<mxCell id="4BrPfXsI2hEZ4emKBVd3-2" value="update()&lt;span style=&quot;color: rgba(0, 0, 0, 0); font-family: monospace; font-size: 0px; text-align: start; text-wrap: nowrap;&quot;&gt;%3CmxGraphModel%3E%3Croot%3E%3CmxCell%20id%3D%220%22%2F%3E%3CmxCell%20id%3D%221%22%20parent%3D%220%22%2F%3E%3CmxCell%20id%3D%222%22%20value%3D%22draw()%22%20style%3D%22rounded%3D1%3BwhiteSpace%3Dwrap%3Bhtml%3D1%3BfillColor%3D%23dae8fc%3BstrokeColor%3D%236c8ebf%3B%22%20vertex%3D%221%22%20parent%3D%221%22%3E%3CmxGeometry%20x%3D%22365%22%20y%3D%22766%22%20width%3D%22100%22%20height%3D%2240%22%20as%3D%22geometry%22%2F%3E%3C%2FmxCell%3E%3C%2Froot%3E%3C%2FmxGraphModel%3E&lt;/span&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
109+
<mxGeometry x="275" y="766" width="100" height="40" as="geometry" />
110+
</mxCell>
111+
<mxCell id="4BrPfXsI2hEZ4emKBVd3-4" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.455;entryY=-0.024;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" source="gm8WBRlXmR8NpAHpHh1z-14" target="4BrPfXsI2hEZ4emKBVd3-1">
112+
<mxGeometry width="50" height="50" relative="1" as="geometry">
113+
<mxPoint x="190" y="650" as="sourcePoint" />
114+
<mxPoint x="240" y="600" as="targetPoint" />
115+
</mxGeometry>
116+
</mxCell>
117+
<mxCell id="4BrPfXsI2hEZ4emKBVd3-5" 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;" edge="1" parent="1" source="gm8WBRlXmR8NpAHpHh1z-14" target="4BrPfXsI2hEZ4emKBVd3-2">
118+
<mxGeometry width="50" height="50" relative="1" as="geometry">
119+
<mxPoint x="50" y="630" as="sourcePoint" />
120+
<mxPoint x="100" y="580" as="targetPoint" />
121+
</mxGeometry>
122+
</mxCell>
111123
</root>
112124
</mxGraphModel>
113125
</diagram>

assets/GameOfLife.png

2.92 KB
Loading

0 commit comments

Comments
 (0)