- Given a board with m by n cells, each cell has an initial state live (1) or dead (0).
- Each cel interacts with its 8 neighbours using the following 4 rules:
-
- any live cell with fewer than 2 live neighbours dies, as if caused by under-population
-
- any live cell with 2 or 3 live neighbours lives on to the next generation
-
- any live cell with more than 3 live neighbours dies, as if by over-population
-
- any dead cell with exactly 3 live neighbours becomes a live cell, as if by reproduction
-