The rules

The rules

Life is played on a grid of square cells--like a chess board but extending infinitely (in theory) in every direction. A cell can be alive or dead. A live cell is shown by a colored square. A dead cell is shown by leaving the square empty (i.e white). Each cell in the grid has a neighborhood consisting of the eight cells in every direction including diagonals.

The cell (red) and its eight neighbors (blue)

This screenshot shows a cell (red) and its eight neighbors (blue)

To apply each step of the rules, we count the number of live neighbors for each cell. What happens next depends on this number. Here are the rules:


The number of live neighbors is always based on the cells before the rule was applied. In other words, you must first find all of the cells that change before changing any of them.

KDE Logo