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.
Awesome! I don't get tired of this! How about going diving?
There we go! Let's study the animals that live in the bentonic region, that is, together with the ocean substrate. But, pay attention: we are still in a shallow area of the ocean that is well lit and has a large variety of animals! To dive for longer, we need an oxygen tank. I need to move forward one step and stop on the coarse sand before an urchin.
Well done! Pay attention: if Robo is not on the coarse sand before a sea urchin, we only need to more forward one step to get the oxygen tank. If Robo is on the coarse sand before a sea urchin, we need to turn right to get the oxygen tank.
Now that we have the equipment, let's begin our study! If the sediment is coarse sand, we will need to collect the starfish on the left. Otherwise, we will collect the starfish on our right.
Our next step will be: move forward one step and check the sediment cell. If the sand is coarse, the starfish will be on your left. If the patch of sediment has sea urchins, we will need to step right to pick it up. But wait! We are not done yet! If the sediments are not coarse sand and there are no sea urchins, we will need to go back to cells.
Wow! We found a lost treasure in the sea! We need to swim to pick up this treasure while we write another letter.
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.