Nils Harrison
Front-End Engineer
About Me

Mazes

Experiment with programmatic maze generation featuring animated visualization.

Legend

start point - top left

end point - center of maze

shortest path between start and end points

current cell being processed (during animation)

cells being explored during pathfinding

Controls
3
💡 Tip: You can adjust steps in real-time during animation
How It Works

Here is how it works:

  1. Start with a grid that has every possible wall filled in.
  2. Choose a cell to start from.
  3. From your current cell, choose a random neighbor that you haven't visited before and move to that cell, knocking down the wall between them.
  4. If there are no unvisited neighbors, backtrack to the previous cell you were in and repeat.
  5. Otherwise, repeat from your new cell.