about summary refs log tree commit diff stats
path: root/swift
diff options
context:
space:
mode:
Diffstat (limited to 'swift')
-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