Two rules. One ant. Roughly ten thousand steps of apparent chaos — and then, out of nowhere, it starts building a perfectly periodic highway.
Langton's AntLive
two rules, emergent order
Controls
Presets
Two rules: on white, turn right and flip the cell; on black, turn left and flip. After about 10,000 steps of apparent chaos, the ant spontaneously builds a periodic highway — order from simplicity.
Reading this result: Early on the trail is small and near-symmetric — the same two rules run every step, so the outcome is fully deterministic no matter the speed.
Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.
★ Sign in to save this setupSave your tuned setup, or drop this simulation into your own site, docs, or course page.
How it works
Langton's ant moves on a grid of black and white cells: on a white cell it turns right and flips the color; on black it turns left and flips. Despite the utterly simple rules, the long-term behavior is unpredictable, then abruptly settles into an ordered, repeating pattern — a vivid example of emergent complexity.
✦
Ask the AI about this model
The math, the assumptions, real-world uses, or a code translation — explained for this exact simulation.
Yes. Langton's Ant runs entirely in your browser using your device's own compute, so local use is free forever. You only pay Compute Tokens if you scale a job to the cloud.
Do I need to install anything?▾
No. Everything runs client-side in a modern browser — no downloads, no license, no account required to start.
Can I save or share my simulation?▾
Create a free account to save projects, and use a shareable embed or minted DOI to publish a live, interactive version anywhere.
How accurate are the results?▾
The solver uses established numerical methods, but results are for research and educational purposes and should be validated against experiment or professional review before you rely on them.