Playground
A little corner to play
Small browser games built for fun — plain JavaScript, nothing to install. For interactive demos of how AI works, head to Learn.
Games
GamesA few small browser games built for fun — pure vanilla JavaScript, no frameworks, no downloads. Have a play.
- Snake
- 2048
- Memory match
Dyslexia Resources
DyslexiaFree see-and-hear reading tools for dyslexic children and their tutors and parents. A growing set, starting with a phonics word game.
- See-and-hear phonics game
- Whole word, letter names & sounds
- OpenDyslexic font toggle
Three-Body Problem
SimulatorThree stars, one law of gravity, and pure chaos. A real Newtonian gravity simulation — step through the figure-eight orbit, a famous chaotic setup, and watch a tiny nudge spiral into a different universe.
- Figure-eight & Lagrange orbits
- Pythagorean chaos
- Live energy & chaos ghost
Gravity Sandbox
SandboxBuild your own universe. Click and drag to fling planets, scroll to change their mass, and hit space to watch a cloud collapse into a solar system. Everything pulls on everything, and bodies that touch merge.
- Click-drag to launch
- Spawn a collapsing cloud
- Momentum-conserving merges
ASCII Weather
ToyThe forecast, rendered as ASCII art right in your browser — search any city or use your location. A little homage to wttr.in, with real live data.
- Real data (Open-Meteo)
- Use my location
- Hand-drawn ASCII art
Double Pendulum
ChaosTwo rods, one hinge, pure deterministic chaos. Watch a one-in-a-thousand nudge send an identical twin down a completely different path.
- Real RK4 physics
- Chaos twin
- Hypnotic trails
Boids
EmergenceLifelike flocking from three simple rules — separation, alignment, cohesion. No leader, no plan, just emergence. Tune each rule and watch the swarm change.
- Reynolds' boids model
- Tune the three rules
- Up to 250 boids
Game of Life
EmergenceConway's classic cellular automaton. Four tiny rules, and out come gliders, guns and patterns that build other patterns. Draw your own or drop in a preset.
- Draw cells live
- Glider gun & pulsar
- Turing-complete
Mandelbrot
FractalOne equation, infinite detail. Click to zoom into the boundary of the Mandelbrot set — you can keep going essentially forever, and it never stops being intricate.
- Click to zoom
- Real escape-time maths
- Smooth colouring
Fourier Epicycles
MathsDraw any shape and watch a chain of rotating circles redraw it — the Fourier transform made visible, the same maths behind audio and image compression.
- Draw your own
- Real DFT
- More circles = crisper
Quantum Eraser
CuriosityThe double-slit experiment, live. Fire particles and an interference pattern builds; measure which slit and it vanishes; erase that knowledge and — impossibly — it returns.
- Fringes build one dot at a time
- Which-path detector
- The quantum eraser twist
Lorenz Attractor
ChaosThe butterfly. Three equations from a toy weather model trace a strange attractor that never repeats — and where "the butterfly effect" got its name.
- RK4, rotatable 3-D trail
- The famous butterfly
- Sensitivity twin
Reaction-Diffusion
PatternsSpots, stripes and coral emerging from two reacting chemicals — the Gray-Scott model, the maths Turing proposed for how animals get their markings. Pick a recipe or paint into it.
- Turing patterns
- Spots / mitosis / coral / maze
- Paint your own seeds
Wave Interference
WavesA ripple tank: two sources overlap into constructive and destructive interference. Drag the sources and tune the wavelength — the same physics as the double-slit fringes.
- Superposition, live
- Drag the sources
- Tune wavelength & spacing