Decide what happens to a specific cell given its current state and its neighbours.
- A living cell with less than two neighbours: Dies
- A living cell with two or three neighbours: Survives
- A living cell with more than three neighbours: Dies
- A dead cell with exactly three neighbours: Becomes alive
Apply the rules for an n by n grid of cells.
Apply the rules for an n by n grid of cells multiple times.