The Game of Life is a cellular automaton devised by British mathematician John Horton Conway in 1970. It is a zero-player game: its evolution is determined entirely by its initial state, with no further input needed. You set up an initial configuration of cells on a two-dimensional grid, press play, and watch what unfolds.
Conway, who was a professor at Princeton University, designed the game after years of experimenting with different rule sets. He wanted rules simple enough to be computable by hand yet complex enough to produce interesting, unpredictable behavior. The Game of Life was popularized by Martin Gardner in his "Mathematical Games" column in Scientific American in October 1970, and it quickly became one of the most studied objects in recreational mathematics and computer science. Conway passed away on April 11, 2020, but his creation continues to inspire generations of mathematicians and programmers.
The universe of the Game of Life is an infinite two-dimensional grid of cells, each of which is in one of two states: alive or dead. Every cell interacts with its eight neighbors (horizontally, vertically, and diagonally adjacent). At each step (generation), the following rules apply simultaneously to every cell:
These four rules can be summarized even more concisely: a cell is alive in the next generation if and only if it has exactly 3 neighbors, or it is currently alive and has exactly 2 neighbors. This implementation uses wrapping (toroidal) boundaries, meaning the grid edges connect to the opposite side.
Over five decades of exploration, enthusiasts have catalogued thousands of interesting patterns. Here are the ones included in this simulator:
The Game of Life is far more than a curiosity. It is Turing complete, meaning it can simulate any computation that a general-purpose computer can perform. Logic gates, memory, and even entire processors have been built within the Game of Life. This makes it a profound demonstration that complex computation can emerge from extremely simple rules.
The Game of Life is a foundational example in the study of emergent complexity and self-organization. It influenced fields ranging from theoretical biology (modeling population dynamics and morphogenesis) to artificial life research, where scientists study how lifelike behaviors can arise from simple computational substrates. Stephen Wolfram's extensive work on cellular automata, culminating in A New Kind of Science (2002), was partly inspired by explorations in the Game of Life.
For programmers, the Game of Life is a classic exercise in algorithm design, optimization, and visualization. Implementations range from naive nested loops to highly optimized algorithms like Hashlife, which can compute trillions of generations in seconds by exploiting the recursive structure of patterns through memoization.
Fascinated by emergent complexity from simple rules? Tactiko is a tactical football game where simple player moves create complex match dynamics — just like how simple cellular automaton rules create infinite complexity.
Play Tactiko — Free Tactical Football