Skip to main content
Teacher Portal

Teacher Tips icon Teacher Tips

As mentioned previously, behaviors are a way to talk about the robot's actions. One way to get students thinking about behaviors and organizing actions in a sequence is to have students label different parts of their project using comment blocks. The students can label the different behaviors from the challenges throughout the project. For more information about using the comment block, use the Help.

Consider a simple example challenge of playing Tag. The students are asked to program the robot to turn quickly to avoid being tagged, drive slowly to tag someone, and then turn quickly again to run away. View the example below of using the comment block to describe the sequence of behaviors:

A block-based coding program in VEXcode. The program begins with the when started block, followed by a sequence of commands. It first sets the turn velocity to 75 percent, then turns the robot 180 degrees to the right. A comment indicates that this is to Turn quickly to avoid being tagged. Next, it sets the drive velocity to 25 percent and drives the robot forward for 80 mm, with a comment stating Drive forward slowly to tag someone. Finally, the robot turns 180 degrees to the right again with the comment Turn quickly again to run away.

Notice that the description of the behavior is in simple language and although the comments above require two blocks, the comments capture single components (i.e., turning quickly, driving forward slowly, and turning slowly) of the larger behavior (playing tag).

It is good practice to ask the students to explain how they will plan for these challenges in terms of how they want and expect the robot to behave.