VR Robot and The Red Gems
Challenge: Three red gems (red squares) are hidden in the maze. The object of the game is to code the VR Robot to drive from the Start Position A (green square A), maneuver through the maze to identify the locations of the three gems, and ultimately arrive at the Exit Position B (green square B) on the Maze+ Playground to escape the maze. The fastest time wins! To identify the location of a red gem, drive the robot onto the red square and print its X and Y coordinates to the Print Console.
- 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.
- Select the Start Position A.
- Use [Drive for] and [Turn for] blocks to code the VR Robot to drive from green square A to green square B.
- Determine the path for the robot to drive from the Start Position A to the Exit Position B, passing through three red squares in sequence.
- Drive the VR Robot onto the first red square. Use the [print] block to print its X and Y coordinates to the Print Console.
- Drive the VR Robot onto the second red square. Use the [print] block to print its X and Y coordinates to the Print Console.
- Drive the VR Robot onto the third red square. Use the [print] block to print its X and Y coordinates to the Print Console.
- Monitor the value of the position block in the Monitor Console.
- Manually record the X and Y coordinates of each red square and share the data with your friends.
Helpful Hints
- To select a Start Position in the Wall Maze + Playground, select the menu button, then select the location button.


- Use the position Reporter block from the Sensing category to get the X and Y coordinate positions of the robot from the GPS.
- Matching Python command:

- Matching Python command:
For more information about the features of the VR MazeBot in VEXcode VR, please see this article.