Most games have an object to interact with.

lesson-header

For example, relay race runners must pick up and hand off the baton with speed and accuracy.

Can you think of other examples?

Build these 4 game components.

student-02

We’ll use them one at a time.

  • Practice Driving Base with a Distance Sensor
  • Arm
  • Marker
  • Cube

Stop at object: with or without sensor?

SPIKE Competition Ready Training camp 2 Step03-Program - en-us
student-03

Place your Driving Base 30 cm (12 in.) away from the marker.

Try these 2 programming stacks one at a time and decide which is best.

One of the stacks uses the Distance Sensor to detect the object in front of the Driving Base.

Drive forward and grab the cube.

Add extra programming blocks to your programming stack to make it:

  • Lower the grabber after stopping at the marker
  • Reverse and move the cube away from the marker

Here’s one way to solve this:

SPIKE Competition Ready Training camp 2 Teacher solution - en-us

Watch the relay race!

student-05-video

Create a relay race program.

Will you be the fastest?

Check the hint for the rules of the game.

Here are the rules:

1. Set a distance of 12 in.
2. Break the cube into four different colored relay batons.
3. Program your Practice Driving Base to collect all of the colored batons one at a time from the marker. 
4. Remove each baton from the Practice Driving Base as it’s delivered.

Think about how you did. 

student-06

What did you do well? Is there anything you could’ve done better?

Looking good!