Decorate the tree from bottom up
Everything from movement through loops, conditions to nested structures in your winter journey
Awesome! I can't get enough of this! How about we start collecting some candy canes?
Here we go! Let's pick up that red candy cane. I need to go one step forward and stop if the ice starts cracking!
Alright! watch out now! We need to check if the ice is cracked or not. If the ice is not cracked, then we can skate forward to pick up the candy cane. If the ice is cracked, we need to make a right turn to pick up the candy cane.
Now, we need to plan well! If the ice is not thin, we will get the candy cane on the right. Otherwise, we will get the candy cane on the left.
Here is our next move: We take one step forward and check the ice. If the ice is thin the candy cane will be to the left. If the ice is cracked, then the candy cane will be to the right. Wait! We are not done yet! If the ice is neither thin nor cracked, then it will be two steps behind us.
There is one last thing to do on this adventure. We need to skate around to collect the last of the red candy canes while writing another letter on the ice to complete our Christmas wishes.
Decorate the tree from bottom up
Everything from movement through loops, conditions to nested structures in your winter journey