Pip
Guide

Unplugged Coding for Kids: Learn Programming Without a Computer [Printable]

Pip as a robot following arrow cards on a floor grid for unplugged coding

Key takeaways

  • Unplugged coding teaches sequences, loops, conditions and debugging with no screen.
  • Children can start at 5 with arrow cards and a grid on the floor.
  • A bug is just a mistake in the instructions, and fixing it is the main skill.
  • Ages 8 to 12 can move on to loops, if/then rules and logic.
  • Unplugged practice can make screen coding easier later, because the ideas are already familiar.

The simplest way to learn programming for kids is to start without a computer. Unplugged coding teaches the ideas behind code (a sequence of steps, repeats, if/then choices and fixing mistakes) using cards, a floor grid and a willing parent playing the robot. It suits ages 5 to 12, needs paper and tape, and takes 10 to 30 minutes per activity. Below are six games with steps and age versions, plus how to move onto screens when your child is ready. A printable secret code wheel is included.

What is unplugged coding?

A four by four floor grid with Pip at the bottom left cell and a star two cells up and one across. A yellow path shows forward, forward, turn right, forward. Beside it are four arrow cards in order: forward, forward, turn right, forward.
Unplugged coding: four arrow cards (forward, forward, turn right, forward) are a program that moves Pip two squares up, then one square right to the star.

Unplugged coding is learning how computers think by acting it out with objects and people instead of a screen. The child writes instructions, and a person or a toy follows them exactly.

It teaches four ideas that all programming uses:

  • Sequence: steps in the right order.
  • Loops: repeating a step instead of writing it again.
  • Conditions: "if this, then that".
  • Debugging: finding and fixing what went wrong.
Four tiles showing the four ideas in coding. Sequence: steps in the right order. Loops: repeat a step. Conditions: if this, then that. Debugging: find and fix mistakes.
The four ideas behind all programming, with no computer needed.

CS Unplugged, for example, publishes unplugged activities aimed at ages 5 to 12. In England, KS1 children learn what algorithms are and how to debug simple programs, so unplugged play lines up neatly with school.

Why learn to code without a computer first?

Because the thinking comes first and the typing comes second. A child who can order steps and spot a bug on a floor grid may find screen coding easier to follow.

There are practical benefits too:

  • No device needed, so it works in the car, at a table or in a garden.
  • Mistakes are funny rather than stressful. A parent walking into a wall is a good bug.
  • It slows things down. Children can see each step happening.

Being the robot can help children who find block coding on a tablet hard to follow.

How do you play Human Robot (ages 5 to 7)?

One person is the programmer. The other is the robot, who can only do exactly what's said.

  1. Pick a goal: reach the door, pick up a sock, or stand on a mat.
  2. The child gives one instruction at a time: "forward one step", "turn right", "stop".
  3. The parent-robot follows exactly. If the instruction is vague, the robot freezes.
  4. When the robot goes wrong, say "bug found!" and fix the instruction together.
Four steps of Human Robot. One: pick a goal such as reaching a door. Two: the child gives one instruction at a time. Three: the parent robot does exactly what is said. Four: when the robot goes wrong, say bug found and fix the instruction together.
Human Robot: one person programs, one person follows the instructions exactly.

Making a sandwich is a classic: "put the jam on the bread" gives you a jar on a loaf. Children find this hilarious and learn that computers need precise instructions. Keep each go to 5 to 10 minutes. If you use real food, check for food allergies first.

How do arrow cards and a grid work?

Make a 4 by 4 grid from paper squares or masking tape. Draw arrow cards: forward, left, right. Place a toy at the start and a star at the goal.

  1. The child lays a row of cards, say forward, forward, right, forward.
  2. Read the cards aloud and move the toy one step per card.
  3. If the toy misses the star, find the bug. Which card is wrong?
  4. Swap with a sibling. Can they solve the other child's puzzle with fewer cards?
A four by four grid. A red triangle toy starts in the bottom left square facing up and a star sits two squares up and one across. The four arrow cards are forward, forward, turn right, forward, which moves the toy up two squares, turns it right and moves it one square onto the star.
Read the cards in order: forward, forward, turn right, forward. The toy lands on the star.

For ages 5 to 7, start with a 3 by 3 grid and no obstacles. For ages 8 to 12, add walls (blocked squares), a limit of six cards and a repeat card that means "do this block twice". Try the Robot Steps game afterwards: it uses the same idea of planning a path in order.

How can kids learn loops and if/then rules?

Dance and Simon Says are the easiest ways in. A loop is just a repeat, and an if/then is a choice.

Loop dance: make a four-move dance, such as clap, stomp, spin, jump. Write it once, then add "repeat 3". Compare writing it three times and using one loop. Which is shorter? That's why programmers love loops.

Two rows of coloured tiles for a four move dance of clap, stomp, spin and jump. The top row writes it out three times as 12 tiles. The bottom row uses a repeat 3 card plus 4 tiles, so 5 cards do the same job.
Same dance, fewer cards: a loop turns 12 steps into 5.

If/then Simon Says: change the rules. "If I hold up red, jump. If I hold up blue, sit." Mix up the colours quickly. Add a harder rule: "if red AND I am smiling, spin". That's logic, and it leads into the AND, OR and NOT gates in our Logic Gates game.

Two cards for the if then Simon Says game. If I hold up a red card, the player jumps. If I hold up a blue card, the player sits.
If this, then that: the colour I hold up decides the move.

Try to count steps too. A 12-step instruction with a loop in it can shrink to about 5. Kids see the saving straight away.

What about secret codes and ciphers?

Codes teach the idea that information is stored in a pattern, which is how computers work. Ages 8 to 12 love them.

  • Caesar shift: move each letter three places along the alphabet. A becomes D.
  • Binary bracelets: use two bead colours for 0 and 1 and spell an initial. An adult should supervise, and beads are a choking risk for under-6s, so keep them away from small children.
  • Morse code: dots and dashes taped on a torch signal.
A string of eight beads: sky blue, yellow, sky blue, sky blue, sky blue, sky blue, sky blue, yellow. Sky blue means 0 and yellow means 1, so the beads read 01000001, which spells the letter A. A note warns that small beads are not for children under 6.
Two bead colours for 0 and 1 spell a letter. These eight beads make the letter A.

Cracking someone else's code is debugging in disguise. Our Secret Codes game gives them a puzzle to crack once they've made their own. For another logic puzzle on paper, see the conveyor belt logic puzzle.

Unplugged coding cheat sheet with six panels: sequence, loops, if this then that, debugging, binary for the letter A, and a shift-3 secret code where HELP becomes KHOS.
Printable-size cheat sheet: six unplugged coding ideas.
A4 printable secret code wheel. A large outer ring of the alphabet A to Z and a small separate wheel to cut out and pin in the middle, with instructions to turn the small wheel so A sits under D, a box for a secret message, an example where HELP becomes KHOS and a code to crack.
A cut-out Caesar cipher wheel with a box for your secret message. Printable: right-click (or long-press) and save the image, then print on A4.

When should children move on to screen coding?

Move on when they can write a short sequence, spot a bug and use a repeat without help. There's no fixed age, so go by these signs.

A good first screen step is a block-based tool where they drag instructions together instead of typing. Keep sessions to 20 to 30 minutes and keep playing unplugged games alongside. Planning on paper first is a habit worth keeping.

Pip's workbooks take the same thinking onto paper: Junior Engineers for ages 5 to 7 and Senior Engineers for ages 8 to 12, which includes logic puzzles. Our guide to STEM games for kids covers screen options that build the same habits.

What goes wrong, and how do you fix it?

Most problems are about too much too soon. Reduce the task and try again.

  • Child gives long vague instructions: limit to one step at a time.
  • They get cross when the robot messes up: make a joke of it. "The robot did exactly what you said!"
  • Grid too tricky: shrink it to 3 by 3 and remove walls.
  • Bored after two goes: give them a bigger twist, such as writing a puzzle for you to solve.

Pro tip: praise the bug-find, not the first-time success. "You spotted the wrong turn" tells them what to repeat.

Questions parents ask

What is unplugged coding?

It's learning how programming works without a computer. Children use cards, games and role-play to practise sequences, loops, conditions and debugging.

What age can kids start learning to code?

From about 5, with simple sequencing games like Human Robot or arrow cards on a grid. Screen coding can follow once they can handle these ideas on paper.

Do kids need a computer to learn programming?

No. The core ideas are logic, order and problem-solving, and children can practise them with paper, toys and a floor grid.

What is a bug in coding?

A bug is a mistake in the instructions that makes the program do the wrong thing. Finding and fixing bugs is a main skill in programming.

What are good unplugged coding activities?

Human Robot, arrow cards on a grid, loop dances, if/then Simon Says and simple ciphers such as the Caesar shift. Each takes 10 to 30 minutes.

Is unplugged coding useful at school?

Yes. The English computing curriculum introduces algorithms and debugging in KS1, and sequence, selection (conditions) and repetition (loops) in KS2, so unplugged games match the topics.

GuideCodingAges 5–12

Pip STEM Games

We make engineering games and workbooks for kids aged 5 to 12. Every activity here is one we'd happily run at the kitchen table: test it, watch it fail, fix it, try again.

Your turn to build

Pip is waiting on the island. Bridges, circuits and machines, all ready to test.

Robot Steps tier 4 game
Garden Gates tier 3 game
Download on the App StoreGet it on Google PlayAvailable at Amazon Appstore