This Game of Life is an interactive grid for John Conway's cellular automaton. There is no player to steer and no score: you set up a pattern of live cells, then watch how it changes from one generation to the next. Black cells are alive and white cells are dead. Cells respond to a click or a tap, so it works with a mouse or a touchscreen.
The Rules Each Generation
Every cell looks at its eight neighbors, including the diagonals, and all cells update at the same time:
- A live cell with fewer than 2 live neighbors dies.
- A live cell with 2 or 3 live neighbors survives.
- A live cell with more than 3 live neighbors dies.
- A dead cell with exactly 3 live neighbors comes to life.
The grid does not wrap around. A cell on the border simply has fewer neighbors, so anything that travels into an edge breaks up there instead of reappearing on the other side.
What the Controls Do
The page opens with a 20 × 20 grid filled with a checkerboard. Resize grid builds a new grid from the Columns and Rows fields and fills it with a checkerboard again. Clear all kills every cell, Fill all makes every cell live, Checkers restores the checkerboard, and Random gives each cell an even chance of being alive. Evolve once moves forward a single generation, and Start evolving keeps going on a timer until you click it again. The slider sets the delay between generations, from 50 milliseconds at the fast end to 3 seconds at the slow end, with 500 milliseconds as the default. It is locked while the simulation runs, so stop first if you want to change speed.
Patterns to Try
- Blinker: three live cells in a straight line flip between horizontal and vertical every generation.
- Block: a 2 × 2 square never changes, because every cell in it has exactly three neighbors.
- Glider: one cell in the middle of the top row, one on the right of the second row, and all three cells of the third row. Every four generations it moves one cell diagonally.
- Random soup: press Random, then step through with Evolve once to see which shapes survive and which die out.
Start from a cleared grid when you draw your own pattern, so leftover checkerboard cells do not interfere with it.
For more games where you think a few moves ahead, visit our strategy games. This version was made by Anjana Sofia Vakil at the Recurse Center and is released under the MIT License.
