Space is hostile, unpredictable, and full of decisions. Perfect for learning IF blocks.
The Space Explorer pack throws you into scenarios where your code has to make choices. Dodge or shield? Boost or conserve? Every challenge forces your program to evaluate conditions and act accordingly.
The Challenges
Asteroid Alert — Detect incoming asteroids and print a warning. A straightforward intro to printing conditional messages. Your ship’s computer needs to communicate clearly.
Signal Boost — Multiply your signal strength using a Repeat loop. Each pass through the loop amplifies the signal. By the end, you’ve boosted it enough to reach mission control.
Shield or Dodge — This is where IF blocks shine. Check the asteroid size. If it’s small, dodge. If it’s large, raise shields. Your program makes a decision based on data — that’s branching logic.
Warp Speed — The advanced challenge. Calculate warp factor using nested math operations. Multiply speed by distance, divide by fuel, and determine if you can make the jump. Nested blocks inside nested blocks — this is where you level up.
What You’ll Learn
Conditionals are the backbone of every program that does anything interesting. Without IF blocks, your code can only do one thing. With them, it can do different things based on different situations.
Space Explorer teaches decision-making through stakes that feel real. Your ship needs to react. Your code makes that possible.
Four challenges. One ship. The entire cosmos.