GitHub repo: https://github.com/ADOGamedev/Maze_Generator-Solver
Description: This is an application made in Godot 4.5. It's a maze generator and also a maze solver, there are 3 different algorithms for each.
-
Ctrl + Mouse Wheel: to zoom in and out of the maze.
-
Left Click: while zoomed, you can move the camera around with left click.
At the left there is a panel with some controllers, we'll go through them one by one:
-
Maze Size: an slider which allows yo to change the size of the maze. The maximun size varies depending on the generating algorithm, this is for safety. The max sizes for the different algorithms are these:
- DFS: 500
- HAK: 50
- Origin Shift: 50
-
Visualize Progress: when checked on, it lets you see what the generating/solving algorithm is doing.
-
Visualize Grid Creation: kinda useless, it lets you see how each cell of the maze is created.
-
Visualization Speed: controlls, well, how fast the visualization is shown.
Note
For better controll over the slider, use the mouse wheel while on the slider to controll it more preciselly.
-
Solving Algorithm: lets you choose one of three algorithms to solve the maze:
-
Generating Algorithm3: lets you choose one of three algorithms to generate the maze:
- DFS (Depht First Search): works by randomly going to a new cell, if the cell is already explored it just goes back to the first alternative.
- HAK (Haunt-and-Kill): work like DFS but when it reached a dead-end, it scans the hole maze top to bottom and left to right to find the first alternative.
- Origin Shift4: invented by a Minecraft Redstoner! Works by staring with a default maze and being represented with a directional graph.It starts by tracking a cell that is the origin, then moves the origin and removes outcoming arrows of the graph.
-
Stop origin shift: stops the Origin Shift algorithm because of the way it works it has to be manually stoped after some tim
Note
When not visualizing the generation, Origin Shift will stop itself after some time to (almost) guarantee that you'll get a good maze.
-
Generate: starts the generation process.
-
Solve: starts the solving process.



