Maze Solver Pro
Use [Drive for], [Drive], and [Turn for] blocks, the Down Eye Sensor, the Front Distance Sensor, and the Right Distance Sensor to create an algorithm that can drive the VR Robot from any selected Start Position (green square) to the End Position (red square) on the Maze+ Playground without any program modifications.
- Select the Wall Maze+ Playground.
- Download the .vrmaze file from this folder and upload the maze in the Playground.
- For help with uploading and downloading mazes in the Wall Maze + Playground, see this article.
- Code the VR Robot to drive from any selected Start Position (green square) to the End Position (red square).
- Use the Front Distance Sensor to navigate the VR Robot moving in the maze without running into the wall.
- Create an algorithm to use the Right Distance Sensor to navigate the VR Robot to drive along the wall on the right side.
- Use the Down Eye Sensor to check for the red color to determine if the VR Robot arrives at the End Position.
- Use a conditional loop to keep the VR Robot constantly moving in the maze, and until the Down Eye Sensor detects the End Position.
Helpful Hints
- For more information about the features of the VR MazeBot in VEXcode VR, please see this article.
- To select a Start Position in the maze, select the menu button, then select the location button.


Use the while block from the Control category to code the VR Robot to repeat the blocks contained inside while the Boolean condition is reported to be true.

Matching Python command:
while condition: wait(5, MSEC)