Langton's Ant
İki kurallı tek karıncanın kaostan beliren otoyola gidişini izle. Hücreleri değiştir, klasik Langton otomatını oynat
Langton's Ant follows two rules: on a white cell it turns right, flips the cell to black, and moves forward; on a black cell it turns left, flips the cell to white, and moves forward. From an empty board, an ordered highway famously emerges after about 10,000 steps.
About Langton's Ant
Langton's Ant is a calm, watchable thought experiment · the two-state cellular automaton devised by Chris Langton in 1986. It belongs to the PlayMemorize Idle Games collection alongside Game of Life and Rule 30: systems that are satisfying to watch, simple to nudge, and faithful to their underlying rules. There is no score and nothing to lose · you set the board and observe what one ant does with two rules.
The rule. A single ant stands on a grid of white and black cells, facing a direction. On a white cell it turns 90° right, flips the cell to black, and moves forward one cell. On a black cell it turns 90° left, flips the cell to white, and moves forward. That is the entire rule set · and from an empty board it produces roughly ten thousand steps of apparent chaos before an ordered diagonal highway suddenly emerges and repeats forever, one of the most famous examples of emergent behaviour in mathematics.
Starting boards. Begin from the canonical empty board, or sprinkle random black cells to see how the ant copes with a noisy world. Tap or click any cell to flip its colour at any time · the ant itself is always drawn as a triangle pointing the way it faces, so you can follow both its position and its heading. The board wraps at the edges, so the highway keeps travelling instead of jamming in a corner.
Controls. Play or pause, step a single move, reset to the current starting board, and set the speed up to a bounded maximum. A running step count and black-cell count are always on screen. The full keyboard works too: Space plays or pauses and the Right arrow steps.
Calm by design. The simulation pauses itself when you switch tabs, and it never auto-animates when your device asks for reduced motion · you simply step the ant by hand instead. It runs entirely in your browser and works offline as part of the PlayMemorize app. Part of the PlayMemorize family.
FAQ
-
What rule does Langton's Ant follow?
The canonical two-colour rule from 1986: on a white cell the ant turns 90° right, flips the cell to black, and moves forward; on a black cell it turns 90° left, flips the cell to white, and moves forward. Nothing else · every pattern you see emerges from those two lines. -
What is the famous "highway"?
After roughly 10,000 steps from an empty board, the ant abruptly stops looking chaotic and starts building an endless diagonal corridor of 104-step cycles · the highway. Nobody has proven why it always appears, which is part of what makes this tiny automaton famous. On this board the edges wrap around, so the highway keeps travelling instead of stopping at a corner. -
How do I change the board?
Tap or click any cell to flip it between white and black · the ant reacts to whatever it finds. Then press Play to run, Step to advance one move, Reset to restore the current starting board, and drag the speed control up to a bounded maximum. The Sprinkle button seeds a fresh random scatter of black cells. -
Does it keep running when I leave the tab?
No. The simulation pauses when the tab is hidden or backgrounded, so it never burns battery in the background. When you return, it stays exactly where you paused it · the step count and board are preserved. -
Does it respect reduced motion?
Yes. If your device requests reduced motion, the board does not auto-animate. Everything still works · you step the ant by hand with the Step button or the Right arrow key, and the current state is always visible without any animation.