The behaviour of each cell is dependent only on the state of its eight immediate neighbours, according to the following rules: Live cells:
- a live cell with zero or one live neighbours will die.
- a live cell with two or three live neighbours will remain alive
- a live cell with four or more live neighbours will die.
Dead cells:
- a dead cell with exactly three live neighbours becomes alive
- in all other cases a dead cell will stay dead.
NB: All births and deaths occur simultaneously