diff --git a/world.gd b/world.gd index 4732d47..7fe76b0 100644 --- a/world.gd +++ b/world.gd @@ -2,7 +2,7 @@ ## Rule 1 - Any live cell with fewer than two live neighbours dies (underpopulation) ## Rule 2 - Any live cell with two or three live neighbours lives ## Rule 3 - Any live cell with more than three live neighbours dies (overpopulation) -## Rule 4 - Any dead cell with epos.xactly three live neighbours becomes a live cell (reproduction) +## Rule 4 - Any dead cell with exactly three live neighbours becomes a live cell (reproduction) extends Node2D @@ -100,7 +100,7 @@ func cell_is_alive(pos: Vector2) -> bool: # Rule 3 - Any live cell with more than three live neighbours dies (overpopulation) elif currently_alive and neighbors > 3: return false - # Rule 4 - Any dead cell with epos.xactly three live neighbours becomes a live cell (reproduction) + # Rule 4 - Any dead cell with exactly three live neighbours becomes a live cell (reproduction) elif not currently_alive and neighbors == 3: return true