Browse Source

Minor fix

pull/1/head
Ryan Reed 1 year ago
parent
commit
5898ec5934
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      world.gd

+ 1
- 1
world.gd View File

@ -54,7 +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:
elif 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:


Loading…
Cancel
Save