Sidewinder Maze Generation
Sidewinder Algorithm
This 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.
About the Applet
This applet was created using JavaScript and the P5 library. No other libraries/dependencies are required. If you are having trouble viewing the applet, be sure JavaScript is enabled in your browser. Click here for instructions. Internet Explorer is not recommended for this applet.This applet was last updated July 2019.