Unplugged Coding for Kids: Teach Sequences and Loops With Paper Arrows

Three young kids on a classroom carpet play a coding game on a tape grid with big arrow cards
Photo created with AI.

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.

IdeaWhat it means for kidsCSTA standard
SequenceSteps happen in order, one at a time1A-AP-08, 1A-AP-10
LoopRepeat a group of steps instead of writing them again1A-AP-10, 1B-AP-10
DebugFind the step that went wrong and fix it1A-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

Illustration of a boy in a cardboard robot helmet on a floor grid while a girl holds up an arrow card

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.

Two 5 by 5 grids with a robot, rocks, and a star. Program 1 uses eight arrows; Program 2 repeats right and down four times
Two grids, two programs: eight single arrows, or a loop that repeats two arrows four times.

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

GradesTry thisNext step
K–1Human robot on the carpet, 3- to 5-step programs with arrow cardsAdd one rock to go around
2–3Paper grids, 6- to 10-step programs, finding one bugRewrite a long program as a loop
4–5Loops, the shortest program to the goal, programs with several stopsDesign 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.

Keep reading

Early Finisher Activities for Grades K–5 That Aren't Busywork

Logic puzzles, secret codes, and color by code: early finisher activities for grades K–5 that keep kids thinking, plus a folder system that runs itself.

Secret Codes for Kids: How to Teach the Caesar Cipher and Pigpen Cipher

How to teach a number code, the Caesar cipher, and the pigpen cipher to kids in grades K–5, step by step, with worked examples.

How to Run a Classroom Escape Room in 45 Minutes (No Locks Needed)

A step-by-step plan for a 45-minute classroom escape room: a paper safe instead of lock boxes, you as HQ, hint tokens, and tips for grades K–5.

Similar Posts