The Two Rules
At a BLACK cell: turn 90° left, flip cell to WHITE, step forward.
The ant starts at the centre facing North on an all-white grid. These two lines of rule produce behaviour so complex that it was conjectured for years that a clean long-term structure was impossible.
Phase 1: Chaos (~0–500)
The ant wanders unpredictably near the starting cell, building an irregular black-and-white island with no obvious structure.
Phase 2: Build-up (~500–10k)
A growing, seemingly random tangle. The step count at which the highway first appears varies but is always within ~10,000 for the standard rule on an infinite grid.
Phase 3: Highway (10k+)
The ant locks into a diagonal corridor that repeats with exact period 104, advancing 2 cells diagonally each cycle — an eternal, perfect structure from simple chaos.
Turing Completeness
Multi-colour generalisations are Turing-complete: any computation can be encoded as a turmite rule. The 2-colour classic ant is a universal computer candidate.
Rule Variants Reference
| Rule | Colours | Behaviour |
|---|---|---|
| 🐜 RL (Classic) | 2 | Chaotic wandering → deterministic highway after ~10,000 steps (period 104) |
| 🌿 RLLLLRRRLLL | 11 | Fractal growth structure; highly complex self-similar region boundaries |
| 🔷 LLRR | 4 | Fills half-plane, symmetric diagonal wedge pattern; no highway observed |
| 🔶 RRLL | 4 | Symmetric bilateral tiling; mirror-image wedge from both sides |
| 🌀 LRRRRRLLR | 9 | Highly complex, space-filling; classified as type Δ (irregular growth) |
| △ RLR | 3 | Triangle-based rotational symmetry; grows outward in hexagonal-ish pattern |
The Highway in Detail
The classic Langton's Ant highway was identified empirically by Langton in 1986 and proved rigorously to persist indefinitely (given sufficient space) by various authors. The key insight is that the ant constructs a specific 5×5-cell glider-like structure that it then pushes along the diagonal. The glider has exactly 104-step period and translates by (2,−2) per cycle, meaning average speed 2√2 / 104 ≈ 0.027 cells per step.
Connection to Cellular Automata & Complexity
| Concept | Connection to Langton's Ant |
|---|---|
| Conway's Game of Life | Both are 2D deterministic CAs with universal computation capability; Life uses neighbourhood rules, the Ant uses a mobile agent |
| Wolfram Rule 110 | Simplest known 1D Turing-complete CA; Langton's Ant is the 2D mobile-agent analogue |
| Turing Machines | An ant on a 1D tape with 2 colours recovers exactly a 2-state 2-symbol Turing machine; Langton extends this to 2D |
| Penrose Tilings | RRLL and LLRR variants produce quasi-periodic patterns reminiscent of substitution tilings |
| Self-organised criticality | The highway emergence is an example of self-organisation: global order arises spontaneously from local rules without external guidance |