The Submarine’s Secret Code
Deep in the dark sea… what message will the submarine send to its base?
Build a cool submarine that swims in the dark sea.

Blocks needed
- × 1

- × 1

- × 23

- × 44

- × 4

- × 2

- × 2

How to build 32 steps
1 / 32
Coding mission
Submarine mission! The submarine must send the right code before it can dive into the dark water. Hint: send rainbow-colored light!
Blocks and their jobs
Master BlockShows the light
Light Sensor BlockMeasures how much light there is
Let's think
Use a condition with the Light Sensor Block.

Put the color for when it is bright (lots of light) here.

Put the color for when it is dark (little light) here.
Find out which colors the Master Block can show.

Show the solution
Above the water, the submarine’s light (Master Block) is purple. In the dark it sends the rainbow code: red, orange, yellow, green, blue, indigo, violet. Use the endless loop block to keep checking the amount of light.
Mission complete!
Built it and coded it? Tap to save your progress.
































