How to play Game of Life

  1. 1Click or tap a cell to switch it between alive (black) and dead (white).
  2. 2Use Clear all, Fill all, Checkers or Random to set the whole grid at once.
  3. 3Click Evolve once to advance exactly one generation.
  4. 4Set the speed slider first (left is fast, right is slow), then click Start evolving; click Stop evolving to pause.
  5. 5Type new Columns and Rows values (the fields are set for 2 to 100) and click Resize grid.

About Game of Life

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.

FAQ

Why can I not move the speed slider?

The slider is locked while the grid is evolving. Click Stop evolving, change the speed, then click Start evolving again.

What happens when a pattern reaches the edge?

The grid does not wrap around, so edge cells have fewer neighbors and moving patterns such as gliders break up at the border.

How large can I make the grid?

Enter new Columns and Rows values and click Resize grid. The input fields are set up for values from 2 to 100.

Is there a way to win?

No. It is a zero-player simulation. The fun is in designing starting patterns and seeing what they turn into.

You may also like

All games