Ages 9 to 12
Coding for kids ages 9 to 12
Kids this age can read the helper's explanations, hold a plan in their head and get properly ambitious. The trick is to keep raising the bar one rung at a time.
The idea ladder
- Change what you seeColors, sizes, speeds.meets: variable
- Add a rule“If I touch lava, go back to start.”meets: condition
- Add something that repeatsWaves of enemies, falling coins.meets: loop
- Design a levelPlacement, difficulty, pacing.meets: coordinates
- Make a whole gameA start screen, a goal, a win and a lose.meets: game state
Each rung brings in a real programming idea, explained in a line the first time the helper uses it.
Talk mode: ask how it works
Build mode changes the game. Talk mode answers questions without touching anything. Encourage your kid to switch over whenever something surprises them. Asking “why did that happen?” is how programmers learn.
If they want to understand the code itself, they can ask the helper to explain what it wrote, in plain words.
Why does the dragon stop chasing me when I run far away?
The dragon only chases you when you're closer than 200 pixels. That number is stored in a variable called chaseDistance. Want it bigger?
Yes, make it 400
Stretch challenges
The one-sentence spec. Before building, write the whole game in one sentence. Then build only that.
The bug report. When something breaks, describe what you expected and what happened instead. That's how real bug reports are written.
The remix swap. Swap games with a sibling or friend and add one thing to theirs.
The level designer. Draw three levels that get harder, and explain what each one teaches the player.
When they want to type code
Some kids hit a point where describing isn't enough and they want to write code themselves. That's a great sign. Every Vibe Kids™ game downloads as plain HTML, CSS and JavaScript files they can open in any code editor. For other next steps, see our fair comparison of coding apps.