Loops and logic — the heartbeat of every program
Learn for-loops, while-loops, and recursion without ever writing an infinite loop.
Loops are the first thing that makes coding feel powerful. They are also the first thing that crashes computers. In Loop Guardian, Runkiss the English Staffy walks your child through every flavour of loop, then teaches them how to spot an infinite loop before they hit run.
Difficulty: Beginner Time: 15 min Reward: 300 XP
What your child will learn
- Write a for-loop that does exactly what you intended
- Use a while-loop without freezing the page
- Understand recursion through a worked example
- Spot an infinite loop in someone else's code
- Use break and continue without confusion
What parents should know
- Age: 13+ (great early mission)
- Time: About 15 minutes
- Difficulty: Beginner
- Prerequisites: None.
- Safety: Browser sandbox. Even an infinite loop here is automatically interrupted.
Parent FAQ
- Is recursion not too hard for a beginner?
- We introduce it gently with a single visual example. Most kids surprise their parents by getting it.
- Will this help with maths?
- Yes — loops and logic exercise the same patterns as algebra and pre-calc reasoning.
- Why is Runkiss the loop teacher?
- Because loops are about repeating things, and a Staffy will fetch the same ball forever. He is on-brand.
- What comes after this?
- Most kids go to Functions or Memory Management next.
Start Loop Guardian →
See all 12 missions