Spectacular Cellular Automata
    Preparing search index...

    Function briansBrainRule

    • 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.