Maze — Free
Find your way through a randomly generated labyrinth. Start top-left, reach the exit bottom-right — walls block your path, and there is exactly one route through.
You escaped! 🎉
What is a Maze?
A maze is a puzzle made of walls and corridors that you have to navigate from a starting point to an exit. On vygam every maze is drawn fresh the moment you arrive: you begin in the top-left cell, the goal waits in the bottom-right, and a tangle of passages sits in between. There are no enemies and no time limit forcing your hand — just you, the walls, and the single question every labyrinth asks: which way is out? Move one square at a time down the open corridors, back out of the dead ends you meet, and thread your way toward the exit.
What makes these puzzles fair is that each one is a perfect maze. In a perfect maze there is exactly one path between any two cells and never a loop, so the whole layout is really a branching tree of corridors. That guarantees two things you can rely on: a route from the start to the exit always exists, and you can never accidentally circle back to where you began. The mazes are built by a technique called randomized depth-first search — the computer carves a winding tunnel through the grid, backtracking whenever it paints itself into a corner, until every cell has been linked exactly once. The result is a genuine labyrinth that is different on every visit yet always solvable.
How to Play
Movement is deliberately simple, and the rules are strict about what you cannot do. A step is blocked — nothing happens — whenever you try to:
- move through a wall between your cell and the next;
- step off the edge of the grid;
- move diagonally — every step is up, down, left or right;
- jump more than one cell at a time.
Maze Tips & Strategy
A maze looks chaotic, but a handful of classic navigation tricks turn the tangle into something you can solve on purpose rather than by luck. These techniques work on any perfect maze, including every layout on vygam.
Follow one wall — the right-hand rule
Imagine keeping your right hand on the wall and never lifting it. Turn the same way at every junction — right when you can, straight when you cannot, and only turn back at a true dead end. This wall-follower method sounds too simple, yet on a perfect maze whose walls are all connected it is mathematically guaranteed to walk you from the start to the exit. The left-hand rule works just as well; pick a hand and stay loyal to it.
Work backwards from the exit
When the route from the start looks hopeless, trace a path from the exit instead. Dead ends are often easier to spot in reverse, and because a perfect maze has only one path between any two points, the corridor you find running back from the goal is exactly the one you need to travel forwards. Meeting in the middle from both ends is a fast way to crack the larger boards.
Rule out the dead ends
Every branch that ends in a wall is a corridor you never have to enter again. Use the breadcrumb trail the game leaves behind to remember which turns you have already explored, and mentally "fill in" a dead-end tunnel the moment you back out of it. Pruning the map this way shrinks even a 22×22 Hard maze down to the few corridors that actually matter.
Look ahead at every junction
Speed comes from committing to long straight corridors and only slowing down where the path forks. When you reach a junction, glance down each opening before you move — a branch that visibly closes off after a cell or two is rarely the way through. Deciding at the fork instead of one step at a time keeps your trail clean and your move count low.
Maze Sizes & Difficulty
vygam offers three maze sizes so the challenge can grow with you. Easy is a 10×10 grid — a hundred cells, wide corridors and short dead ends that make it perfect for a quick coffee-break run or for learning the controls. Medium steps up to a 16×16 board, where the passages twist more often and you will lean on the wall-follower trick to avoid wandering in circles. Hard fills a 22×22 grid with nearly five hundred cells, long snaking tunnels and plenty of tempting dead ends — the kind of labyrinth that rewards a calm, methodical search.
Whatever size you pick, the maze is always a perfect maze with a single guaranteed route, so a bigger board is more work but never unfair. Switch sizes any time with the difficulty tabs and a brand-new layout is generated instantly. Your fastest time and fewest moves are stored separately for each size, so you can chase a personal best on Easy while slowly building the patience for a full Hard run. Tap New maze whenever you want a fresh challenge at the current size — no two mazes are ever the same.
Controls, Trail & Best Times
You can play Maze however suits your device. On a computer the arrow keys move you one square at a time, and the game ignores any key that would push you into a wall or off the grid. On a phone or tablet, use the chunky on-screen d-pad or simply swipe across the board in the direction you want to travel. Every control does the same thing: take one step down an open corridor. Nothing is timed against you, so there is no penalty for pausing to plan your route.
As you explore, a soft breadcrumb trail marks every cell you have visited, giving you a map of where you have already been and which branches turned out to be dead ends. If you get truly stuck, tap Show solution to draw the one correct path from your current position to the exit, then hide it again and finish under your own steam. A Time and a Moves counter track your run, and your best time for each size is saved to your browser as a Best score. Because the record lives in local storage, it stays with you between visits with no account required — reach the exit and the win screen shows your time and whether you set a new personal best.
FAQ
Is Maze free to play?
Yes — Maze on vygam is completely free. There is no download and no sign-up; a fresh maze is generated instantly in your browser on phone, tablet or desktop.
How do you play a maze game?
You start in the top-left cell and steer toward the exit in the bottom-right. Move one square at a time with the arrow keys, the on-screen d-pad or a swipe. Walls block your path, so follow the open corridors until you reach the exit.
Does every maze have a solution?
Yes. Every maze on vygam is a perfect maze, which means there is exactly one path between any two cells and never a loop. A route from the start to the exit is always guaranteed, so a maze is never impossible.
What is the right-hand rule for solving mazes?
Place one hand on a wall — say the right one — and keep it touching that wall as you walk, always turning the same way at junctions. In a perfect maze whose walls are all connected, this wall-follower method is guaranteed to lead you from the start to the exit.
Are maze games good for your brain?
Maze solving exercises spatial reasoning, planning and visual memory as you picture routes and rule out dead ends. Like other logic puzzles it is a relaxing way to sharpen focus and navigation skills, one turn at a time.