#7072-EN

Page 16

LESSON 4 STORY

A LONGER WAKE UP MAP

Franky didn’t wake up the first time Sammy visited. Sammy didn’t wait long enough to make sure Franky woke up. This time, program Sammy to pause for a second in Franky’s room.

WHAT’S HAPPENING This time, you have inserted a Pause Movement card in between the Move Forward and Move Backward cards. This stops Sammy’s movement for one second when Sammy is in Franky’s room.

LESSON 5 STORY

CODE

A LONGER PAUSE WITH SHORTER CODE MAP

Oh boy. Franky still didn’t wake up! And laying out all these code cards is taking a long time. Is there a way to make Sammy pause for a longer time and also use fewer cards to do the same thing?

WHAT’S HAPPENING The number cards execute the code card immediately before them by the specified number of times. The first Number 4 card executes the Move Forward action four times. The Number 2 card executes the Pause Movement card two times, pausing the robot for two seconds instead of one. The second Number 4 card executes the Move Backward card four times.

15

CODE


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.