Skip to main content

Drive to and Mark Your Birthday

Code the VR Robot to drive to and mark the numbers that make up your birthday using the [Drive for], [Turn for], and [Set Pen color] blocks on the Numbered Grid Map Playground

  • Select the Numbered Grid Map Playground.
  • Code the VR Robot to drive and mark the dates that are part of your birthday.
    • Use a blue pen to mark the day you were born.
    • Use a red pen to mark what month you were born.
    • Use a green pen to mark what year you were born.
  • Modify the code to use a different sequence of turns and drives to reach and mark the same numbers in any order.

Helpful Hints

Use the Set Pen color block from the Looks category to select a pen color when marking numbers.

VEXcode Set pen color block that reads 'set pen to color black'.

Matching Python command:

pen.set_pen_color(BLACK)