Maze Solving Simulator
Maze Solving Simulator
This is my Maze Solving Simulator I wrote. It allows users to build a maze and have a virtual robot solve it using the left hand on the wall technique. You can then run the optimized path as well. My simulator is embedded and running above. So if you have not tried it out, you should. See my maze solving tutorial as well, because this goes hand and hand with it.
Watch the video to see how to operate it, but here is an outline:
- Choose your speed by clicking in the rectangle below the labeled "Robot Speed". This speed is how many squares the robot will move in a second.
- Left click on the grid to draw a maze. You can also ‘click and drag’ to draw a maze as well.
- Right click on a black square to make it the starting square of the maze
- Right click on an empty, grey square to make it the finishing square of the maze
- Hit "solve" to have the robot run through the maze using the left hand on the wall technique
- After that is done, you can click "display optimized path" to have the robot run the optimized path
- You can click “reset” to restart the simulation from scratch
What you shouldn’t do:
-It can not handle loops
-You can not draw on the edges (the code will not allow you any way)
-Keep the starting and finishing square at least 1 block away from any turn
-A recent update will prevent you from drawing “boxes”
I Hope this is fun or educational. You should be able to download the code above if you want.
(See instructions below)