diff options
author | elioat <{ID}+{username}@users.noreply.github.com> | 2024-06-20 14:08:12 -0400 |
---|---|---|
committer | elioat <{ID}+{username}@users.noreply.github.com> | 2024-06-20 14:08:12 -0400 |
commit | 3ddca8731f61d224784f5a64bfc639d10a29944e (patch) | |
tree | 5d21a6ff25f61ac363a4a4e73bcafd92a6ed4aa2 /swift/life | |
parent | cf7b723fcaaef9087e8a885f3c24a902914f2365 (diff) | |
download | tour-3ddca8731f61d224784f5a64bfc639d10a29944e.tar.gz |
*
Diffstat (limited to 'swift/life')
-rw-r--r-- | swift/life/Sources/main.swift | 8 |
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 |