about summary refs log tree commit diff stats
path: root/swift/life
diff options
context:
space:
mode:
Diffstat (limited to 'swift/life')
-rw-r--r--swift/life/Sources/main.swift8
1 files changed, 8 insertions, 0 deletions
diff --git a/swift/life/Sources/main.swift b/swift/life/Sources/main.swift
index e010b94..b27bcba 100644
--- a/swift/life/Sources/main.swift
+++ b/swift/life/Sources/main.swift
@@ -79,3 +79,11 @@ toad[4][3] = 1
 toad[4][4] = 1
 toad[4][5] = 1
 simulate(board: toad, generations: 5)
+
+var rpentomino = Array(repeating: Array(repeating: 0, count: cols), count: rows)
+rpentomino[3][4] = 1
+rpentomino[3][5] = 1
+rpentomino[4][3] = 1
+rpentomino[4][4] = 1
+rpentomino[5][4] = 1
+simulate(board: rpentomino, generations: 100)
\ No newline at end of file
1.4.4&id=a66c4a26f79d71210422f7d977b892d5a700dae8'>a66c4a26 ^
5c210a96 ^


a66c4a26 ^
3de15ddd ^
a66c4a26 ^


f027adc0 ^
5c210a96 ^

3de15ddd ^

5c210a96 ^
fb275079 ^

5c210a96 ^
3d566884 ^
a1d7ed6e ^
3d566884 ^
f8e96a97 ^
465bff73 ^





f027adc0 ^
f8e96a97 ^

0b5c4cbe ^
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