Skip to main content

Arrive At The Red Square

Use [Drive for] and [Turn for] blocks to code the VR Robot to drive from the Start Position (green square) to the End Position (red square) on the 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.
  • Code the VR Robot to drive from the Start Position (green square) to the End Position (red square).
    • Put the instructions in the right order to complete the task successfully.

Helpful Hints

  • The distance across one maze square is 300mm.
  • Use the drive for block from the Drivetrain category to move the Drivetrain for a given distance.

    VEXcode Drive for block that reads 'drive forward for 200mm'.

    • Matching Python command:

      drivetrain.drive_for(FORWARD, 200, MM)
  • Use the turn for block from the Drivetrain category to rotate the Drivetrain for a given angle.

    VEXcode Turn for block that reads 'turn right for 90 degrees'.

    • Matching Python command:

      drivetrain.turn_for(RIGHT, 90, DEGREES)