Browse Source

Fixing comments

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

+ 2
- 2
world.gd View File

@ -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


Loading…
Cancel
Save