Spectacular Cellular Automata
Website
Source Repository
Jira
Documents
Preparing search index...
lib/simulation
gameOfLifeRule
Function gameOfLifeRule
gameOfLifeRule
(
cellState
:
0
|
1
,
aliveNeighbours
:
number
)
:
0
|
1
Conway's Game of Life
Any live cell with 2 or 3 live neighbours survives.
Any dead cell with exactly 3 live neighbours becomes a live cell.
All other live cells die in the next generation.
Parameters
cellState
:
0
|
1
The current cell state.
aliveNeighbours
:
number
The number of alive Moore's neighbours of the cell.
Returns
0
|
1
Next cell state.
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Website
Source Repository
Jira
Documents
Spectacular Cellular Automata
Loading...
Conway's Game of Life