This is the Game Of Life, a Turing complete game which can simulate any Turing machine. There are three rules:
- Any live cell with two or three live neighbours survives.
- Any dead cell with three live neighbours becomes a live cell.
- All other live cells die in the next generation. Similarly, all other dead cells stay dead.
Cells are simulated using filled and empty grid; filled means alive while empty means dead.
To explore more, visit https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life.