Cellular Automata

Every square looks at its neighbors to decide its next color. Repeating this one simple rule grows complicated patterns. Tap squares and watch how the pattern grows.

Generation (number of updates): 30

A simplified teaching model. Everything outside the board counts as empty squares.

How to play

Tap a square to turn it on or off. Use “View” to pick 1D or 2D. In 1D, tap the top row to change it, and 30 generations of pattern are drawn again. Changing the rule number starts the pattern over. The 2D board starts with shapes that stay still, shapes that flicker in place, and shapes that glide diagonally. Press “Auto” to run, or “Step” to advance one generation at a time. Arrow keys and Enter also work.

Learn more

The 1D rule number packs together what happens next for each of the eight possible color patterns of three squares. The 1D view is 61 squares wide and shows 30–60 generations. The 2D board is 20×20, so shapes that reach the edge behave differently from on an endless board.

Read more about it: Small models of nature →