Conway's Game of Life
The Game of Life is a grid of cells that are alive or dead. Every generation, each cell counts its eight neighbors. A dead cell with exactly three living neighbors is born, and a living cell with two or three survives. Everything else dies. John Conway found these rules in 1970, and they grow gliders, guns, and even working computers. Pick a pattern and watch it run. Click or drag on the grid to draw living cells, or choose Erase. Type another rule, such as B36/S23, to try a Life-like automaton.
How it works
- Open this page. A Gosper glider gun fires a new glider every 30 generations.
- Pick another pattern: spaceships, the R-pentomino, the acorn, a random soup, or the HighLife replicator. Or type a rule such as \(B36/S23\).
- Draw or erase cells, change the speed, colors, and cell size, then save a PNG or open the layers in the PictorX editor.
Two rules, no players
The Game of Life is a game without players. You set up the first generation, and the rules do the rest. A dead cell with exactly 3 living neighbors comes alive. A living cell with 2 or 3 living neighbors stays alive.
Every other cell is dead in the next generation, from loneliness or from overcrowding. In rule notation that is \(B3/S23\): born with 3, survives with 2 or 3.
Still lifes, oscillators, and spaceships
Some patterns never change, like the 2 × 2 block. Others repeat, like the blinker, which flips every generation, or the pulsar, which returns every 3. Spaceships travel: the glider moves one cell diagonally every 4 generations.
In 1970 Bill Gosper found a gun that fires a glider every 30 generations, which proved that a pattern can grow forever. The R-pentomino and the acorn are methuselahs: tiny starts that take over a thousand generations to settle.
Other Life-like rules
Change the numbers after B and S and you get another universe. HighLife \((B36/S23)\) has a replicator that copies itself. Day & Night \((B3678/S34678)\) treats living and dead cells the same way, so its blobs look alike in black and white.
Seeds \((B2/S)\) explodes from almost anything. The Game of Life is also universal: gliders can act as signals, and with guns and eaters you can build logic gates and a full computer.
Frequently asked questions
What are the rules of Conway's Game of Life?
A dead cell with exactly 3 living neighbors is born. A living cell with 2 or 3 living neighbors survives. Every other cell is dead in the next generation. Written as a rule: \(B3/S23\).
What is a glider?
A pattern of five cells that moves one cell diagonally every 4 generations. It is the smallest spaceship in the Game of Life.
What is the Gosper glider gun?
A pattern found by Bill Gosper in 1970 that fires a new glider every 30 generations. It was the first pattern known to grow forever.
What do B and S mean in a rule like B36/S23?
B lists the numbers of living neighbors that bring a dead cell to life, and S the numbers that keep a living cell alive. \(B36/S23\) is HighLife: like the Game of Life, but a dead cell with 6 living neighbors is born too.
Is Conway's Game of Life Turing complete?
Yes. In 1982 Conway and his co-authors showed that gliders, glider guns and eaters can be combined into logic gates and memory, so a large enough pattern can compute anything a computer can, and Paul Rendell built a working Turing machine in Life in 2000. The Gosper glider gun in the app is the basic part of such machines.
What happens at the edge of the grid?
That depends on Wrap edges. When it is off, the grid sits inside a hidden margin, so a glider flies out of the picture and disappears instead of piling up on the edge. When it is on, the left edge joins the right and the top joins the bottom, so a pattern that leaves on one side comes back on the other.
生命遊戲: how do I record a video?
Press the red Record button in the playback bar: it films what the stage shows. Press it again to stop, and the video is saved to your device.Recording is free; you only need to sign in. Without a subscription the video carries a small PictorX logo in a corner.The button beside Record opens the video options: the shape (as shown, square, story 9:16 or wide 16:9), the length (until you stop, or 5, 10, 15 or 30 seconds for social media) and the file: MP4, WebM or an animated GIF.You can add one of three music tracks: calm, bright or beat.
Ready to try it?
Open PictorX in your browser — no install, no credit card required to start.
前往編輯器