Remix Library / Techy
Maze Maker & Solver
Generate a random maze with depth-first search, then solve it with breadth-first search.
No account needed: you’ll start as a guest.
read-only · remix to edit
What you'll learn
Challenges
Remix it, then try these. Each one is a bit harder than the last.
- Make a bigger maze by changing WIDTH and HEIGHT.
- Set SEED to a number so you get the same maze every time.
- Count how many dead ends the maze has.
- Solve it with depth-first search instead, and compare how many cells each one explores.
- Let the player walk through the maze by typing n/s/e/w.