Coding activity
Coding Challenge Arena
Solve fun puzzles by giving instructions! Guide a toy through a maze, stack blocks in the right order, and figure out the missing piece in a pattern. Every puzzle is a coding challenge!
Materials and setup
- puzzle cards
- timer
- whiteboard or paper
- markers
- numbered cards
How this changes by age
Pre-K (ages 3–4)
Solve fun puzzles by giving instructions! Guide a toy through a maze, stack blocks in the right order, and figure out the missing piece in a pattern. Every puzzle is a coding challenge!
Steps
- Puzzle 1: Build a block tower following a picture (3-4 blocks in a specific order). Can you match it?
- Puzzle 2: Draw a path through a simple maze. Tell a toy which way to turn at each step.
- Puzzle 3: Pattern puzzle. Red, blue, red, blue, ___? What comes next?
- Time each puzzle with a timer. Celebrate finishing!
- Ask: 'Which puzzle was hardest? When you figure out a puzzle, that is called problem solving — just like coding!'
- Tell a grown-up one thing that surprised you.
Learning objectives
- Follow visual instructions to complete a multi-step construction task
- Navigate through a simple maze using directional commands
- Identify and complete pattern sequences
Kindergarten (ages 5–6)
Enter the Coding Challenge Arena! Solve timed logic puzzles, find bugs in broken instructions, and race to crack secret codes. Sharpen your thinking skills like a real programmer!
Steps
- Challenge 1 — Debug It: Here are 5 steps to make a sandwich, but two steps are in the wrong order. Find and fix the bugs!
- Challenge 2 — Code Breaker: Each letter is shifted by 1 (A=B, B=C). Decode the message: DPEJOH JT GVO! (CODING IS FUN!)
- Challenge 3 — Logic Puzzle: 'I have 4 legs, I am not a chair, I bark.' What am I? Solve 5 riddles using IF-THEN logic.
- Challenge 4 — Maze Race: draw a maze and write the directions. Trade with a partner. Follow their directions exactly.
- Score points for each challenge. Add up your total. Can you beat your score next time?
- Tell a grown-up one thing that surprised you.
Learning objectives
- Debug incorrect sequences by identifying and fixing errors
- Apply simple decoding rules to crack a cipher
- Use logical reasoning to solve riddles with multiple conditions
Early elementary (ages 6–8)
Compete in a coding challenge tournament! Solve logic puzzles, optimize algorithms, debug broken programs, and crack complex codes. Track your score and try to beat your personal best!
Steps
- Round 1 — Optimization: sort 10 numbered cards in the fewest swaps possible. Record your swap count. Can anyone do it in fewer?
- Round 2 — Debugging: here is a 10-step program for a robot to deliver a package. 3 steps have bugs (wrong direction, missing step, infinite loop). Find and fix them all!
- Round 3 — Logic Grid: use clues to figure out which person owns which pet, lives in which house, and eats which food. Create a grid and cross off impossibilities.
- Round 4 — Code Golf: write the shortest set of instructions to draw a specific pattern. Fewer lines = more points.
- Round 5 — Speed Coding: given a task ('sort these names alphabetically'), write the step-by-step solution as fast as you can.
- Total your scores across all rounds. Record your personal best and try to beat it next time!
- In one sentence, tell a parent or sibling what surprised you today.
Learning objectives
- Optimize solutions by minimizing the number of steps or operations
- Debug multi-step programs by identifying different types of errors
- Solve logic grid puzzles using systematic elimination
Upper elementary (ages 8–10)
Take on advanced coding challenges that test algorithmic thinking, optimization, and creative problem-solving. Design your own challenges for others. Think like a competitive programmer!
Steps
- Challenge 1 — Graph Traversal: draw a map of 8 connected cities. Find the shortest route that visits all cities. Is there more than one optimal route?
- Challenge 2 — Dynamic Programming: you have coins of 1, 3, and 5 cents. Find the fewest coins needed to make 11 cents. Show your work systematically (not trial and error).
- Challenge 3 — Encryption: design a cipher that uses two different rules depending on the letter's position (odd or even). Encode a message. Trade with a partner to decode.
- Challenge 4 — Design Challenge: create a new card game with at least 3 rules, a win condition, and a strategy element. Playtest and balance it.
- Challenge 5 — Create Your Own: design a coding challenge for someone else. Include the problem statement, constraints, one example input/output, and the expected solution.
- Score all challenges. Discuss: 'Which types of problems were hardest? What strategies helped you solve them?'
- In one sentence, tell a parent or sibling what surprised you today.
Learning objectives
- Apply graph traversal and optimization techniques to solve routing problems
- Use systematic approaches instead of trial and error for combinatorial problems
- Design original coding challenges with clear problem statements and verifiable solutions
Safety and evidence note
Read the full activity before beginning. An adult should supervise tools, heat, food, outdoor work, movement, and experiments as appropriate. Completion records that the activity was done; the child’s explanation, work sample, photo, or demonstration is stronger evidence of learning than a completion check alone.
Related coding activities
AI Explorers
Train a pretend 'robot brain'! Show it 5 cat pictures and 5 dog pictures, then test if it can guess a new one.
Algorithm Art
Follow step-by-step drawing instructions to create a picture. The instructions are your algorithm! Each step adds one shape or line.
API Restaurant
Play restaurant! The customer tells the waiter what they want, the waiter tells the kitchen, and the kitchen makes it. The waiter is the messenger — just like how computers talk to each other!
App Design Workshop
Design your dream app! Draw what you'd see on a phone screen. What would your app do? What buttons would it have?