Lesson 3 of 8
One block instead of four
Show on a big screenA program has four "Move forward" blocks. Ten squares would need ten blocks.
Step 1 of 4
- Four separate Move forward blocks.
- All four run — four steps to the flag.
- One Repeat block holds one Move forward.
- It runs the same four steps to the flag.
A repeat block runs the blocks inside it many times.
Repeat 4 times with Move forward inside runs Move forward four times. For ten squares, change the number to 10. You still use one Repeat block.
Set the repeat number. Reach the flag.
Loading lab…
Try the lab to finish this lesson.