Spectacular Cellular Automata
Website
Source Repository
Jira
Documents
Preparing search index...
lib/simulation
briansBrainRule
Function briansBrainRule
briansBrainRule
(
cellState
:
0
|
1
|
2
,
aliveNeighbours
:
number
)
:
0
|
1
|
2
Brian's Brain
Dead (0) -> Alive (1) if exactly 2 neighbours are alive (Birth)
Alive (1) -> Dying (2)
Dying (2) -> Dead (0)
Parameters
cellState
:
0
|
1
|
2
aliveNeighbours
:
number
Returns
0
|
1
|
2
Next cell state.
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Website
Source Repository
Jira
Documents
Spectacular Cellular Automata
Loading...
Brian's Brain