MakarovSuites
English
EnglishDeutschРусскийУкраїнськаFrançaisEspañolItalianoPolski
Contact & licences

Math

Langton's ant

Run Langton’s ant on a sparse unbounded lattice, change multicolour turn rules and inspect the classic 104-step highway.

Langton's ant — Actual application image
Actual application image

Try this

On each cell: turn according to its colour, advance its colour cyclically, then move one square. RL on a blank grid develops a repeating highway after a long transient. Other rule strings can behave differently. The sparse grid has no wraparound; each run stops at one million steps.

Equations used in the module
Equations
Rule[state] determines left or right turn
state ← (state+1) mod number of rule symbols
The ant moves one unit in its new direction
Classic RL highway: 104-step cycle with a translated local pattern

Related experiments

Back to catalogue
The secretary problem: stop at 37 % — Actual application image

Math

The secretary problem: stop at 37 %

Play an optimal-stopping game with hidden candidate quality, then compare cutoff strategies with exact probabilities and Monte Carlo trials.

Buffon's needle — Actual application image

Math

Buffon's needle

Estimate π by throwing random needles across parallel lines, compare sample sizes and track a statistical uncertainty interval.

Benford's law — Actual application image

Math

Benford's law

Explore leading-digit distributions, multiplicative scale and counterexamples to Benford’s law using generated or pasted data.