Sidewinder Maze Generation
Sidewinder AlgorithmThis is an easy to program maze build that produces intricate yet simple mazes. The first row of the maze is always left empty. For later rows:
- A random width of a corridor is chosen, with a wall build above and to the right of this corridor. A single gap is map within the northern wall. In this implementation, it is possible to set a maximum width for the size of this corridor; allowing this value to increase will produce less interesting mazes.
- Continue adding randomly sized corridors until the row is complete. A gap must be included in each northern wall.
This applet was last updated July 2019.