cellular-automata game-of-life

Definition

Rulestring

A rulestring is a compact notation used to define the rules of a Conway’s Game of Life. It specifies the conditions under which cells transition between states (e.g., from dead to alive) based on the number of live neighbours.

The standard format for a rulestring is:

  • B (Birth): The numbers listed in place of specify the exact counts of live neighbours that will cause a dead cell to become alive in the next generation.
  • S (Survival): The numbers listed in place of specify the exact counts of live neighbours that will allow a live cell to survive to the next generation.

If a cell’s neighbor count does not match a birth or survival condition, it will be dead in the next generation (either by dying from isolation/overpopulation or by remaining dead).