I got bored and decided to see how compact I could make a maze generation and solving script, and here's the result. It generates a labyrinth of any size (not everything at once, it's more fun this way). Once generated, you can also place down a goal anywhere and the game will find it (eventually). Feel free do mess around with the code but do not claim it as your own if you decide to make anything out of this.
- R to generate a new maze
- S to set the seed of the maze generator, the same seed results with the exact same maze.
- Left click to place the goal
- Space to start/stop solving
Edited by Davve, 18 October 2015 - 02:15 PM.