PPolySim OS
For K-12 Students · Langton's Ant

Langton's Ant for a swarm of robots

Built for k-12 students learning it in middle or high school. Watch the idea come alive with plain-language steps and everyday examples — perfect for projects and homework. Simulate a swarm of robots live below — adjust the inputs and watch it respond, right in your browser.

Langton's AntLive

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.

▶ Run in Python

Data Inspector

Steps0
Highway at~10,000
Grid130²

Governing equation

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.

or unlock everything with Pro →

More with Langton's Ant

Frequently asked questions

Is this good for k-12 students?
Yes — this version of "Langton's Ant for a swarm of robots" is framed for k-12 students learning it in middle or high school. Watch the idea come alive with plain-language steps and everyday examples — perfect for projects and homework.
Do I need to install anything?
No. It runs in any modern browser, free, with no account required.