OpenWorldLab
Ants: 1 Steps: 0 Trail: 0
Turmites (agent-driven) Agent-driven: a single read/write head on a four-colour grid

Four-Colour Ant (LLRR)

The same machine with four colours — and no highway

The same ant with four colours and the turn sequence left-left-right-right. It never escapes into a highway; instead it keeps circling back and slowly grows a roughly symmetric patch.

How it works

In plain English, before the notation

This is Langton’s ant with four colours instead of two, and a turn instruction for each: left, left, right, right. Changing the turn string changes the outcome completely. Where the two-colour ant escapes into a straight road after about ten thousand steps, this one does not — it keeps folding back over its own trail and grows a compact, roughly symmetric patch that expands slowly and steadily.

Each square holds one of four colours, numbered 0 to 3.
On colour 0: turn left. On colour 1: turn left. On colour 2: turn right. On colour 3: turn right.
Whatever the colour, advance it by one (3 wraps back to 0) and step forward.
This ant never settles into a highway. It keeps returning to territory it has already painted.

Compare turn strings

  1. Open Presets and load "Four-Colour Ant" and press Play. Let it run to 20,000 steps.
  2. Note how compact the patch stays and how the ant keeps passing back near its starting point.
  3. Now switch to Langton’s Ant and run the same number of steps. By 20,000 that ant is far off-screen, building a road.

Starting configurations

Loads straight into the simulator

Try any rule

The catalogue covers a few dozen rules. Here you can run any of the 262,144 two-state grid rules, or any of the 256 one-dimensional rules, including ones nobody has written up.

B3
B
Toggle:
S23
S
Toggle:
B3/S23 Likely: a mix, as in Conway’s rule
Birth: A dead cell becomes alive with 3 live neighbours.
Survival: A live cell survives with 2 or 3 live neighbours, and dies otherwise.

Well-known rules

Where it came from

Multi-colour ants were introduced as a generalisation of Langton’s: give the machine n colours and a turn string of n letters, and there are 2ⁿ ants to examine. Gale, Propp, Sutherland and Troubetzkoy surveyed them and found that the turn string, not the number of colours, decides the qualitative outcome. Some strings give highways, some give symmetric growth, some give something in between.

The rule, precisely

What each cell looks at

None. The ant reads only the cell it occupies.

What a cell can be

Four colours per cell, plus the ant’s position and heading

The update

heading' = heading turned by turnString[colour]; colour' = (colour + 1) mod 4; position' = position + one step in heading'

The turn string LLRR gives one instruction per colour, read in order: colour 0 turns Left, colour 1 Left, colour 2 Right, colour 3 Right. Langton’s ant is the two-letter string RL.

Bounded, symmetric, slow

The behaviour is qualitatively different from the two-colour ant, and consistently so:

  • The painted region stays compact and grows slowly rather than escaping in one direction.
  • The pattern is close to symmetric about the starting point, which is characteristic of ants whose turn strings are balanced between left and right.
  • The head repeatedly returns to the neighbourhood of where it started instead of drifting away.
  • No highway phase appears, at any step count that has been checked here.

Unknown for this particular turn string

Universality has been established for the two-colour ant. Whether it carries over to a specific multi-colour turn string is a separate question and has not been settled for LLRR.

The mechanism is the same and the machine is at least as expressive on the face of it, but "obviously it should also work" is not a proof, so this is left as unknown.

Sensitivity to the rule, not the initial state

Deterministic systemsRule-space exploration

Chaotic systems are usually described as sensitive to their starting conditions. What this pair of ants shows is a different kind of sensitivity: identical starting conditions and a two-letter change to the rule produce entirely different long-term behaviour.

Things to try

  • Run both ants at the same speed for the same number of steps. The comparison makes the point far better than either one alone.
  • Use the Place Ant tool to add ants with different headings and see whether several LLRR ants together behave differently from one.
  • Pause and paint some terrain with the Pencil before starting — the ant’s route through pre-coloured ground is worth watching.

Frequently Asked Questions

Because the balance of left and right turns keeps sending it back over ground it has already painted, rather than letting a repeating cycle carry it away in one direction. Turn strings with more turns in one direction than the other are the ones that tend to escape.

References

Other rules in this family

Browse by family

Lab overview →