April 2020
Intermediate to advanced
224 pages
6h 2m
English
We want to keep our sword from Mission 5 safe. Unlike the door in your room, the sword can be anywhere at any time. We want to put a lock on the sword, and if anyone tries to move the sword, an alarm will go off, and the sword won’t work. This alarm can go on anything that you want to keep safe, not just the sword.
You don’t need a speaker for this mission, because the lock will stop the sword from working. We’re going to use if and else statements.
ELSE
We briefly saw an else back in the Debug section of Circuit Playground Express in Mission 3. It covers everything the if doesn't. Remember the algorithm:
What do we do if Lorraine is not hungry? That’s where else comes along.
Only one of these actions ...