Game of Life

26th August 2021

The Game of Life is a cellular automaton simulation created by mathematician John Conway in 1970. It simulates the birth, death and survival of cells on a grid.

How it works

The rules are:

  • Any live cell with fewer than two live neighbors dies, as if by underpopulation.
  • Any live cell with two or three live neighbors lives on to the next generation.
  • Any live cell with more than three live neighbors dies, as if by overpopulation.
  • Any live cell with exactly three live neighbors becomes a live cell, as if by reproduction.

These rules are applied to each cell on the grid in a repetitive manner, and the resulting pattern is observed. The Game of Life can exhibit fascinating patterns from seemingly simple starting patterns.

The source code for Game of Life is available on GitHub