Mazes
HardUse arrow keys or click to trace a path from Start to End
About hard mazes
Hard mazes use 20×20 to 25×25 grids generated with Prim's algorithm, which creates a bushier structure with more short dead ends branching off the main corridors. Dead-end density runs 35–45%, and the solution path is typically 80–130 steps.
At this level, the start and end positions are randomized along the edges, so you can't simply aim for a corner. Check the S and E markers carefully before you begin. The direction you need to travel might not be obvious.
Systematic exploration matters here. The wall-following technique (keep one hand on the wall) will always find the exit in a perfect maze, but it takes extra steps. A better approach is to identify bottleneck passages— narrow corridors that the solution path must pass through. The maze has natural chokepoints where multiple branches converge. Finding these narrows your search significantly.
If hard mazes feel manageable, try expert — the grid expands to 28–35 cells wide, and dead-end density exceeds 45%.