about summary refs log tree commit diff stats
path: root/swift/life
diff options
context:
space:
mode:
authorelioat <{ID}+{username}@users.noreply.github.com>2024-06-20 14:08:12 -0400
committerelioat <{ID}+{username}@users.noreply.github.com>2024-06-20 14:08:12 -0400
commit3ddca8731f61d224784f5a64bfc639d10a29944e (patch)
tree5d21a6ff25f61ac363a4a4e73bcafd92a6ed4aa2 /swift/life
parentcf7b723fcaaef9087e8a885f3c24a902914f2365 (diff)
downloadtour-3ddca8731f61d224784f5a64bfc639d10a29944e.tar.gz
*
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