Stone Sentinel Maze
Challenge: In the Chinese classical novel Romance of The Three Kingdoms, Zhuge Liang conjured the Stone Sentinel Maze based on the concept of the Bagua (Eight Trigrams). This formation trapped millions of troops inside. In this game, the VR Robot starts at the center of the Stone Sentinel Maze. The object of the game is to use [Drive] and [Turn for] blocks, the Front Distance Sensor, the Left Distance Sensor, and/or the Right Distance Sensor to drive the VR Robot from the Start Position (green square) to one End Position (red square) to crack the Stone Sentinel Maze on the Wall Maze + Playground.
- 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.
- Determine the End Position (red square) for the robot to arrive to crack the Maze.
- Code the VR Robot to drive from the Start Position (green square) to the End Position (red square).
- Use a conditional loop and the Front Distance Sensor to navigate the VR Robot moving in the maze without running into a wall. Use the Left Distance Sensor (or Right Distance sensor) to turn the robot in the desired direction.
- Use a loop to repeat the drive and turn actions for a set number of times to code the VR Robot drive to an exit to the outer layer.
- Divide the maze into three layers from the inside to the outside. Code the VR Robot to drive out of the maze layer by layer to the End Position (red square).
- Add a note in your project to explain your strategy to crack the Stone Sentinel Maze.
Helpful Hints
Use the repeat until block from the Control category to code the VR Robot to repeat the blocks contained inside until the Boolean condition is reported to be true.
Matching Python command:
while not condition: wait(5, MSEC)
Use My Block from the My Blocks category to create a custom block to code the VR Robot to make the project shorter and more easily readable.
Matching Python command:
def chooseColor():
- For help with using My Blocks in the project, please select the “TUTORIALS” button in VEXcode VR and choose the My Blocks Tutorial.
For more information about using My Blocks in VEXcode VR, please see this article.