Coding Adventure 4: Watch out for the cracked ice!

Decorate the tree from bottom up

Everything from movement through loops, conditions to nested structures in your winter journey

免費加入

描述

Wow! When we finish this adventure, we will be half way there! It's about time we get to know this lake's surface and make note of the dangerous areas of thin and cracked ice. We can do this!

預覽視頻

任務

How many thin ice patches?

The plan is to move forward and print the number of thin ice patches we have skated on to get the candy cane. Easy!

任務細節

How many thin & cracked ice patches?

We need to move forward and count the dangerous patches of ice (thin and cracked). At the end, print a note of that count.

任務細節

Which is more: thin or cracked ice patches?

Alright, now we need to go fetch that candy cane. We need to be able to count the number of thin ice patches plus count the cracked ice patches we step on. Not only that! We need to print the thin ice patch color if the thin ice patches count is greater than the cracked ice patches. Otherwise, we need to print the cracked ice patch color.

任務細節

Where is the green candy cane?

We need to go get that candy cane and count the number of thin ice and cracked ice patches we skate on. If we find more thin ice patches than cracked ice patches, then we need to move right to collect the candy cane. Otherwise, we are going to move left to get that candy cane.

任務細節

Let's draw another letter!

And as we have done before, when we reach the end of the adventure, we need to skate around to collect the last of the candy canes, while writing on the ice 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

免費加入
Canada Flag 隱私政策使 使用條款
Got an invite