#Binary Tree
- Visit each cell once
- Flip a coin
- Heads: Connect the north wall if possible
- Tails: Connect the east wall if possible
Result:
#Sidewinder
- Perform 2 and 3 on each row
- Visit each cell in row
- Flip a coin at each cell
- Heads: Connect the east wall and remember the cell
- Tails: Choose one of the cells you remembered and connect the north wall, forget the remembered cells
Result:
#Aldous-Broder
- Remember the number of unvisited cells
- Pick a cell at random and visit it
- Repeat 4 to 6 while there are unvisited cells
- Pick a random valid direction to move
- If the cell was not visited
- Visit the cell
- Connect the current cell to the new cell
- Move to the new cell
Result:
#Wilson
- Remember the number of unvisited cells
- Pick a random cell and visit it
- Repeat 4 to 11 while there are unvisited cells
- Pick a random unvisited cell to start walk
- Repeat 6 to 9 while the walk hasn't encountered an unvisited cell
- Pick a random valid direction to walk in
- Move to cell
- If cell is already part of walk
- Forget all cells after original visit to cell
- Else add cell to walk
- Connect cells accumulated during walk
- Forget walk
Result:
#Depth Analysis - Random
Chooses a random cell on the grid and explores the entire maze. Colors the cell based on depth travelled.