This is a zero-player game that models underpopulation, overpopulation, and reproduction using a grid of cells. The cells are either alive or dead. The state of each cell is determined by the states of its neighbors.
Rules
Live cells with two or three cells survive.
Dead cells with three neighbors become alive.
Any other live cells die. Any other dead cell stays dead