Loop Theorem playground

Play with the math from the videos.

Every Loop Theorem sim, live in your browser. Change the rules, break things, share what you find. Or download the file and run it offline.

0steps · 2 rules
Drive it →

6 demos to break

Langton's Ant Lab

Two rules, then 10,000 steps of chaos, then a highway. Drop your own ants and invent new rules.

Play →

3n+1 Explorer

Type any number. Odd: triple it and add one. Even: halve it. Does it always fall to 4, 2, 1?

Play →

The 6174 Trap

Sort the digits big to small, subtract small to big, repeat. Every 4-digit number lands on 6174.

Play →

Pendulum Wave

Each pendulum swings a little faster than its neighbour. Watch chaos snap back into one line.

Play →

Chaos Game

Pick a corner at random, jump halfway there, drop a dot. Do it a million times.

Play →

Infinite Bounces

Each bounce is 80% as long as the last. Infinitely many bounces still end in 5 seconds.

Play →

Take them home. Each demo is one HTML file under the MIT licence. Double-click it to run it offline, open it in a text editor to change the rules.

⬇ All demos (.zip)

Work with Loop Theorem

Sponsorships, promos and collabs:

hello@looptheorem.fun

Keep the sims coming

The demos are free and stay free. If one made you go "ohh", a coffee pays for the next one.

☕ Support on Ko-fi