From e4f2d1934cc9f6544b324cf1d96ea46101da9cee Mon Sep 17 00:00:00 2001 From: Ryan Reed Date: Fri, 11 Aug 2023 15:38:41 -0400 Subject: [PATCH] Fixing rules --- world.gd | 1 + 1 file changed, 1 insertion(+) diff --git a/world.gd b/world.gd index b029378..4dfabee 100644 --- a/world.gd +++ b/world.gd @@ -54,6 +54,7 @@ func cell_is_alive(pos: Vector2) -> bool: elif currently_alive and (neighbors == 2 or neighbors == 3): return true # Rule 3 - Any live cell with more than three live neighbours dies (overpopulation) + if currently_alive and neighbors > 3: return false # Rule 4 - Any dead cell with epos.xactly three live neighbours becomes a live cell (reproduction) elif not currently_alive and neighbors == 3: