Maze Generator
This snippet generates a 2D maze. It does this graphically in an image you can paste and also in a 2D Array. Each 'cell' in the array has a North, East, South and West wall which, during generation, may be "knocked down" to produce the maze.
The maze is generated by randomly picking a route by knocking down walls into cells which meet 2 criteria...