Rocket counted steps the long way yesterday.
It took so many lines!
Raven remembers a power from Grade 1.
A repeat line runs the lines under it.
Can a repeat and a box work together?
Nova beeps. Let us test it!
The repeat runs all the lines under it.
Move, count. Move, count. Move, count.
Steps ends at 3!
set steps to 0 repeat 3 times: move right change steps by 1
Start at 0. Add 1 each round.
The count matches the repeat number!
Build a counter with a repeat.
Count 3 steps the short way.
The set line runs once, at the start.
Under the repeat, it would run every round!
| program | steps ends at 3? |
|---|---|
| set steps to 0, repeat 3 times: change steps by 1 | ? |
| set steps to 0, repeat 2 times: change steps by 1 | ? |
| set steps to 1, repeat 2 times: change steps by 1 | ? |
| set steps to 0, repeat 3 times: move right | ? |
The repeat runs the lines under it.
A change line inside counts every round.
See you tomorrow, Crew!