Decorate the tree from bottom up
Everything from movement through loops, conditions to nested structures in your winter journey
Awesome! We have collected a lot of ornaments for the tree. Now we need to collect some gifts to lay them under the tree.
We need to print the number of cracked ice patches we skate on to collect each gift. Remember to stay on course - there is broken ice everywhere!
Now we need to collect the gift by stopping once we have skated on three thin ice patches.
This is a bit different. Here we need to skate forward and count to three thin ice patches. Then turn right and skate 4 cells to collect the gift.
Another mysterious plan! We need to collect a total of 3 gifts by skating 8 cells forward, turning right, and collecting the remaining gifts. We need a counter that aborts our plan once we have skated on 3 thin ice patches.
We need to skate around to collect the last gifts while we write another letter to complete our Christmas wishes.
Decorate the tree from bottom up
Everything from movement through loops, conditions to nested structures in your winter journey