Skip to main content

CS Level 1 - VEXcode VR Python

Unit 5 - Detecting Walls from a Distance


Using Python with VEXcode VR requires a VR Enhanced or Premium license. Make sure you are logged in with your class code and that the VR Logo in the top left corner is grey or gold. 

In the Wall Maze Challenge, you will use VEXcode VR Python to navigate the VR Robot through the Wall Maze Playground from start to finish. You will learn how to use the Distance Sensor and conditional operators to solve the Wall Maze challenge.

The Wall Maze Problem 

In the previous Unit, you navigated through the Wall Maze by driving until the VR Robot touched the wall and pressed the Bumper Sensor. However, what if you wanted to navigate the maze without touching the wall? Luckily, there are tools on the VR Robot, and in our code to help us solve the wall maze problem without bumping into the walls. You will learn about those tools in this Unit, beginning with the Distance Sensor in the next Lesson.