Logic, patterns and early coding

Unplugged Coding for Preschoolers: Screen-Free Ways to Learn Like a Programmer

By Cloudy Isle editorial teamUpdated 6 min read

Puzzle Tower: a stone tower with a purple roof, gears and puzzle-piece hedges around a sunny meadow.

The short answer

Unplugged coding for preschoolers teaches the ideas behind programming without a screen: putting steps in order, giving exact instructions, spotting repeats and fixing mistakes. Try playing "robot", where your child gives you step-by-step directions, building arrow paths on the floor, ordering picture cards of a routine and "debugging" a silly set of instructions. These games suit children from about three to six.

"Go forward. No, the other forward!" If you have ever tried to follow a four-year-old's directions to the biscuit tin, you have already played a coding game. Programming is, at heart, giving a set of exact instructions in the right order, and then fixing them when something goes wrong.

Unplugged coding for preschoolers teaches those ideas without any screen at all. It is cheap, social and silly, and it suits children who are still learning to hold a crayon. This guide explains what children can learn, which ideas to focus on, and a set of activities you can try this week.

What unplugged coding for preschoolers teaches

Computer scientists use the term computational thinking for the ways of thinking behind programming. For young children, a few ideas matter most:

  • Sequencing: putting steps in the right order.
  • Precise instructions: saying exactly what to do, not roughly.
  • Repeats (loops): noticing when the same steps happen again and again.
  • Conditions: "if this, then that".
  • Debugging: finding and fixing a mistake.

Research suggests these ideas are within reach of young children. A study of a robotics and programming curriculum designed for kindergarten found that children could learn many of its concepts, including sequencing, when activities were hands-on and suited to their age (Bers and colleagues, 2014). Marina Bers, who leads much of this work, describes coding for young children as a "playground" rather than a playpen: a place to create, explore and solve problems together, not a skill to drill (Bers, González-González and Armas-Torres, 2019).

Unplugged activities also stretch the thinking skills that Harvard's Center on the Developing Child calls executive function: holding steps in mind, following rules and adjusting a plan when it does not work (Harvard). And they build on skills from other play, such as pattern activities, which are closely related to the idea of repeats.

The CS Unplugged project at the University of Canterbury in New Zealand has popularised this approach in schools, with free activities that teach computer science through games, cards and movement (CS Unplugged). Most of its activities are aimed at older children, but the spirit translates beautifully to preschool.

Unplugged coding activities by age

AgeFocusActivities
3 to 4Order of steps; following simple directionsRoutine cards, robot parent, follow-the-leader
4 to 5Giving directions; arrows; spotting mistakesArrow paths, debugging silly instructions
5 to 6Repeats, simple "if" rules, planning aheadLoop dances, if-then games, treasure maps

Activities for 3 to 4 year olds

Routine cards

Draw or photograph four steps of a familiar routine: shoes, coat, hat, out of the door. Mix up the cards and ask your child to put them in order. Then try a wrong order and ask, "Can we put our coat on before our jumper?" Laughing at impossible sequences is part of the fun. Our seed to tree sequencing printable works the same way.

Robot parent

Announce that you are a robot who can only do exactly what you are told. Your child gives commands: "Walk. Stop. Jump." Follow them literally. Young children adore being in charge of a grown-up.

Activities for 4 to 5 year olds

Arrow paths

Make arrow cards (forward, turn left, turn right) from paper. Put a toy at one end of a room and lay a "grid" of cushions or tape squares on the floor. Your child places arrows to plan the path, then you or a teddy walk it, one card at a time. Start with straight lines and add one turn at a time. Our line tracing paths printable is a quieter warm-up for following paths with a finger and pencil.

Debugging silly instructions

Give your child instructions for something they know well, with a mistake: "To make a sandwich: put the bread on the plate, eat the sandwich, put the butter on." What went wrong? Let them fix the order. Finding the "bug" is often their favourite part.

Build my tower

Build a small tower out of sight and give instructions to copy it: "Put a red block at the bottom, then a blue one on top." Then swap. Your child discovers that vague instructions ("put that one there") produce funny results.

Activities for 5 to 6 year olds

Loop dances

Make a dance of three moves, such as clap, jump, spin, and write it as a sequence of pictures. Then add a "repeat three times" card. Your child sees that a loop is a shortcut for writing the same steps again.

If-then games

Agree simple rules: "If I hold up a red card, you hop. If I hold up a blue card, you clap." Then let your child invent rules for you. This introduces conditions, a key idea in programming.

Treasure maps

Hide a small treasure and draw a simple map with arrows or steps ("three steps to the door, turn, two steps"). Your child follows it, then draws a map for you. Mistakes in the map become debugging challenges.

Tips for calm, playful coding games

  • Follow instructions exactly. Literal robots make the point clearer and the game funnier.
  • Celebrate bugs. Mistakes are expected; finding them is the skill.
  • Start short. Two or three steps is a good beginning; add more only when it feels easy.
  • Let your child be the programmer. Giving instructions is harder, and more rewarding, than following them.
  • Talk about the steps. "First, then, next, last" are useful words for sequencing.

When to talk to someone

Sequencing and following directions develop at different speeds. If your child finds it very hard to follow simple one-step instructions by around three to four, or you have broader worries about hearing, language or attention, it is worth mentioning to your paediatrician or your child's teacher.

The short version

  • Unplugged coding for preschoolers teaches sequencing, precise instructions, repeats, conditions and debugging without screens.
  • Start with routine cards and robot games, then add arrow paths, loops and if-then rules.
  • Mistakes are part of the fun: finding and fixing them is what programmers do.
  • Keep games short, silly and led by your child.

Next, explore more logic games for kids or read about learning through play.

Questions parents ask

What is unplugged coding?

Unplugged coding means learning the ideas of computer programming, such as sequences, instructions, repeats and fixing errors, through games and activities without a computer. It uses bodies, cards, paper and toys instead of screens.

Is my preschooler too young to learn coding?

Not for the ideas behind it. Research with kindergarten children has shown that they can learn basic programming concepts such as sequencing through developmentally appropriate, playful activities. Preschoolers will not write code, but they can practise thinking in steps.

Do children need coding apps or robots?

No. Coding toys and apps can be fun extras, but the core ideas can all be learned through screen-free games. Unplugged activities are also easy to adapt, cheap and social.

What if my child gives confusing instructions?

That is the point of the game. Follow the instructions exactly, in a silly way, and let your child spot the problem and fix it. Finding and fixing mistakes is called debugging, and it is one of the most important programming skills.

Sources

We link to the guidance we rely on so you can read it yourself.

  1. Bers, M. U. et al. (2014). Computational thinking and tinkering: Exploration of an early childhood robotics curriculum. Computers & Education, 72
  2. Bers, M. U., González-González, C. & Armas-Torres, M. B. (2019). Coding as a playground: Promoting positive learning experiences in childhood classrooms. Computers & Education, 138
  3. CS Unplugged (University of Canterbury): Computer science without a computer
  4. Harvard Center on the Developing Child: A Guide to Executive Function

Written by the Cloudy Isle editorial team at TRN Games: parents and game makers, not doctors. This guide is general information; for questions about your own child's health or development, talk to your paediatrician or health visitor.