Unplugged Coding for Kids: Teach Sequences and Loops With Paper Arrows
Coding starts long before a keyboard. A program is a list of exact steps, and kids can write one with a pencil and a few arrows. Unplugged coding teaches the big ideas (sequences, loops, and debugging) at a classroom table or a kitchen table, with no screens at all.
At a glance
- Grades: K–5, from three-step programs to loops
- You need: a paper grid, arrow cards, a small toy or game piece
- Big ideas: sequence, loop, debug
- Time: 15–30 minutes per session
What Unplugged Coding Teaches
A computer does exactly what you tell it, in the order you tell it. That’s hard for kids to believe until they see a “robot” walk into a wall because the program said so. Unplugged activities make that idea visible.
| Idea | What it means for kids | CSTA standard |
|---|---|---|
| Sequence | Steps happen in order, one at a time | 1A-AP-08, 1A-AP-10 |
| Loop | Repeat a group of steps instead of writing them again | 1A-AP-10, 1B-AP-10 |
| Debug | Find the step that went wrong and fix it | 1A-AP-14 |
The codes come from the CSTA K–12 Computer Science Standards (2017). Level 1A covers ages 5–7 (about grades K–2), and level 1B covers ages 8–11 (about grades 3–5).
Start With a Human Robot

Make a grid on the floor with masking tape, or use the squares of a carpet. One child is the robot. A partner is the programmer and holds up arrow cards one at a time. The robot moves exactly one square per arrow, and only when an arrow is shown.
Put a star on the goal square and a “rock” (a paper plate or a beanbag) in the way. Kids quickly see why the order of the arrows matters.
Agree on what an arrow means before you start. A simple rule works best: an arrow moves the robot one square in that direction, and the robot never turns. That way, kids never have to think about which way the robot is facing.
Move to Paper: Arrow Programs on a Grid
Once kids understand the game, move it to paper. A 5 × 5 grid, a robot in one corner, a star in another, and a few rocks are all you need. Kids write the program as a row of arrows under the grid, then trace it with a finger to test it.

Try it: Look at Program 1. Trace the arrows with your finger from the robot. Does the robot ever land on a rock?
Show the answer
No. The robot goes right, down, down, right, right, down, right, down, and every square on that path is clear. It ends on the star.
1
Read the Grid First
Find the robot, the star, and every rock before writing a single arrow.
2
Write One Arrow per Square
Count squares out loud. Younger kids can lay arrow cards on the grid itself before copying them into a row.
3
Test It
Move a game piece or an eraser along the program, one arrow at a time. Did it reach the star without touching a rock?
4
Trade and Test
Partners swap programs and run each other’s code. If a partner can run it without help, the program is done.
Teach Loops
Look at Program 2 in the picture. Right, down, right, down, right, down, right, down is the same two steps four times. A loop says that in one line: repeat 4 times: right, down.
Show kids a long program and ask, “Where do you see a pattern?” Circle the repeating part. Then rewrite it as a loop. Kids who are good at spotting patterns, or at skip counting, often find loops quickly.
Loops connect to math, too. “Repeat 4 times: right, right, right” is 4 groups of 3, or 12 squares, so it’s a friendly way to talk about multiplication in grades 2 and 3.
Debugging: Finding the Mistake
Every programmer writes bugs. Give kids a program that almost works and ask them to find the one wrong arrow.
- Run the program one step at a time and stop where it goes wrong.
- Ask: what should this arrow have been?
- Fix only that arrow, then test the whole program again.
Celebrate bugs. When a robot crashes into a rock, say “Great, we found a bug!” instead of “That’s wrong.” Kids who aren’t afraid of mistakes test more.
Unplugged Coding by Grade
| Grades | Try this | Next step |
|---|---|---|
| K–1 | Human robot on the carpet, 3- to 5-step programs with arrow cards | Add one rock to go around |
| 2–3 | Paper grids, 6- to 10-step programs, finding one bug | Rewrite a long program as a loop |
| 4–5 | Loops, the shortest program to the goal, programs with several stops | Design a grid with only one safe path |
At home, unplugged coding works with siblings of different ages. The older child writes the program, and the younger child is the robot. For more puzzles that build the same step-by-step thinking, see our early finisher ideas and logic puzzles.
Printables for this idea
Unplugged Coding From Puzzle Caper
Arrow programs, loops, and robot paths on paper, with answer keys. Start with our first set, Robot Path Coding: Sequences.
Our first free printable puzzle is on the way. Join the list on our Free Printables page, and we’ll email it to you when it’s ready.







