From 3ddca8731f61d224784f5a64bfc639d10a29944e Mon Sep 17 00:00:00 2001 From: elioat <{ID}+{username}@users.noreply.github.com> Date: Thu, 20 Jun 2024 14:08:12 -0400 Subject: * --- swift/life/Sources/main.swift | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'swift/life') 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 -- cgit 1.4.1-2-gfad0