Marble maze
Tilt the board, roll the marble, find the green exit. A new maze every time; your best time stays.
Tilt the board with the arrow keys (or WASD), drag on the board with a mouse or finger, or allow motion on a phone and tilt it. Roll the marble to the green exit. Dark holes drop it back to the start. New maze every time.
Controls
- Arrow keys or WASD tilt the board; the marble has weight and momentum, so ease off before corners.
- On a phone, press "Use phone tilt" (iOS asks for permission once) and tilt the device.
- Mazes are "perfect": exactly one path to the exit, no loops — generated by recursive backtracking each time.
Holes, sizes and records
From 12×9 up, a few dark holes sit in the maze. Roll over one and the marble drops back to the start — the falls counter keeps score of your shame. Holes are only ever placed in dead ends, never on the one true path, so every maze can be finished without touching one; they punish wrong turns and sloppy corners.
- 8×6 is a warm-up, 12×9 the standard, 16×12 a real puzzle where the marble barely fits the corridors.
- Your best time for each size is kept in this browser.
- Three ways to tilt: arrow keys or WASD, dragging on the board with a mouse or finger (the further you drag, the steeper the tilt), or the phone's motion sensor.
How the maze is built
Recursive backtracking: start in a corner, knock down a wall to a random unvisited neighbour, keep going until stuck, then back up and branch. The result is a "perfect" maze — every cell reachable, exactly one route between any two points — and a new one every time.
Questions
Phone tilt does nothing. On iPhone the browser asks for motion permission once; if you declined, reload and tap "Use phone tilt" again. Dragging on the board works everywhere.