Shift+Click Green Flag to turn on Turbo Mode. Enter height and scale. You can draw now! Press "E" to erase line. The height and width aren't to scale because of how the algorithm works. #maze #algorithm #puzzle #art #maze #algorithm #puzzle #art #maze #algorithm #puzzle #art #maze #algorithm #puzzle
All code was done by me. The technique for maze generation is referred to as "Depth-First Search". Here's a summary of how Depth-First Search works: A starting tile(Top Left) searches in one out of four directions, and if there is no empty space in that direction, then the tile finder moves 2 spaces, clearing a path. If there is an empty space, it searches around to see if that's the case for all four directions. If that is the case, then it goes back a few steps until there is an a solid space in at least one of the four directions, then it moves in that direction. Source: https://en.wikipedia.org/wiki/Maze_generation_algorithm Tbh, I didn't actually read the article, I just watched the gif a few times :P