Lab
Langton’s Turmite
A turmite is a 2D Turing machine that moves on a grid like Langton’s ant but with more internal states. At each step it reads the cell color, writes a new color, turns, and changes state. From simple rule tables, extraordinary patterns emerge — highways, spirals, fractals, and pure chaos. Choose a preset or define your own rules.
Steps
0
Total iterations
Cells colored
0
Non-zero cells
Turmite state
0
Internal state
Direction
N
Current heading
Actions
Preset
Speed
Steps / frame
10
Rule table
For each (state, color) pair: write a new color, turn (L/R/U/N = left/right/u-turn/none), and transition to a new state.