About the Maze Timer
A snake winds through a random maze, growing one cell longer each tick until it covers the entire grid when time runs out. The maze is generated fresh on every reset using a uniformly random spanning tree turned into a single Hamiltonian cycle — so the snake's path is always twisty and full-coverage, never just snake-coiling around the edges.
How It Works
At the start the snake is just a single cell at a random spot in the grid. As the timer counts down the snake's head moves along its pre-planned route through every cell, leaving a trail of body cells behind. The path is fixed at the moment you press start; the timer's job is just to advance the head at a rate that fills the grid exactly when zero hits.
Perfect For
- Focus sessions — a slow, hypnotic visual that doesn't demand attention
- Classrooms — kids love watching the snake fill the screen
- Long timers — the maze covers thousands of cells, so even hour-long timers stay interesting
- Pomodoro blocks — 25 minutes paced out as one continuous fill
Features
- Hamiltonian-path snake fills every cell exactly once
- Different random maze on every reset
- Highlighted head cell
- Preset durations and custom time input
- Audio alert on completion
- Fullscreen mode
FAQ
Does the snake revisit cells?
No. The path is a Hamiltonian cycle — every cell is visited exactly once, no overlaps. When the timer ends, the snake covers the full grid.
Why does the maze look different each time?
A fresh random spanning tree is generated on every reset, which produces a completely different snake path each run.
Is the maze timer free?
Yes — free, no signup. Runs in any modern browser, desktop or mobile.
Can I use it in fullscreen?
Yes. Tap the Fullscreen button below the canvas; press Esc to exit.