Discover JavaScript in the Ocean
Let's learn everything about movements through loops, conditionals and data alignment structures in the Journey through the Ocean with JavaScript.
When we finish this adventure we will have reached the middle of our journey. We can do this! It's time to get to know the sea inhabitants well!
该计划是向前移动,并打印一张关于我们已经滑过的薄冰块数的记录,以便获得拐杖糖。 非常容易!
我们需要向前移动并计算出危险冰块(薄和破裂)数,然后将数值加到我们已经滑过的危险冰块上, 最后打印该数字记录。
很好,现在我们需要去拿糖果。我们需要能够计算出薄冰块的数量,以及我们经过的裂冰数。不仅如此,如果薄冰块数大于裂冰块,我们还需要打印出薄冰块的颜色。 反之,则需要打印裂冰块的颜色。
我们需要去拿糖果并计算出我们经过的薄冰和裂冰的冰块数。如果我们发现薄冰数大于裂冰数,则需要向右移动来拿糖果。 反之,如果裂冰块的数量较多,则向左移动去拿糖果。
正如我们以前所做的那样,当我们到达冒险的最后环节时,我们需要滑冰来收集最后的装饰品,同时在冰上写下另一个字母来完成我们的圣诞愿望。
Discover JavaScript in the Ocean
Let's learn everything about movements through loops, conditionals and data alignment structures in the Journey through the Ocean with JavaScript.