Mini Minds Hub · Free printable
Program the Tower Route: Free Printable Worksheet for Year 4
In short: Free printable Program the Tower Route for Year 4 (ages 8 to 9). Write the code, trace it, then fix the faulty routes. With answers for grown-ups.
- ForYear 4
- StageKey Stage 2
- CostFree
- FormatPrintable PDF
Learn it through play: toys and games from Jaques
Program the Tower Route asks children to write code that guides a robot across a grid, trace code to see where it ends up, and fix faulty routes. It suits Year 4 (ages 8 to 9). It needs a pencil and no screen, and page 2 gives the grown-up the answers, help ideas and a stretch task.
Before any writing, model one route with your pencil tip. Say each command aloud as you move, one square or turn at a time. Then ask your child to write the code for that same route. The usual slip is code that sounds right but skips a step, so tracing it back on the grid shows exactly where it leaves the route.
What is on the sheet
Children start with a key to read, then work on a grid with rows labelled A to E. They write code to take the robot from START to GOAL, then code from START to the Tower on A4. A later question asks for code from START to the Tower on E1, using x to show repeats. Children also trace routes and fix the faulty ones. There is space to write under each question.
- Row
- A
- B
- C
- D
- E
- Write the code to take the robot from START to GOAL.
- Write the code from START to the Tower on A4.
- Write the code from START to the Tower on E1. Use x for any repeats.
Three ways to start
Walk it first
Ask your child to trace the first route with a finger, saying each command aloud. Only then do they write it down. Hearing the route often shows a missing step before the pencil moves.
Check one command at a time
After writing code, cover it with a ruler. Slide the ruler down and move a pencil tip for each command. If the pencil ends somewhere unexpected, they look again at the last few commands.
Say where you are
At each step, ask the child to name the square they are on, such as A2. This links the code to the grid labels and makes it easier to spot where a faulty route goes off course.
Why code on paper first?
An algorithm is a set of clear steps that gets a task done. Code is an algorithm written so a computer or robot can follow it. A robot cannot guess what you meant. It does exactly what each command says, in the order given. That is why children need to be precise about every step and every direction.
Debugging means finding and fixing a mistake in code. Good programmers trace their code step by step, notice where it stops matching the plan, and change that part. Practising on paper lets children focus on the thinking without worrying about a screen. The same habits carry over to floor robots and block coding later. In the National Curriculum for England, this sits within the Key Stage 2 computing strand on designing, writing and debugging programs.
Did you know?
- A computer follows its instructions exactly, even when the programmer meant something different.
- Many programmable toy robots move by following a list of commands in order.
- When the same command is needed again and again, programmers can write it in a shorter way instead of typing it out each time.
- Programmers test their code by running it, then fix any mistakes they find and test again.
Skills and curriculum link
- Writing algorithms
- Tracing code
- Debugging
- Logical reasoning
- Using repeats
- Reading a key
Ideas to talk about
- Precise instructionsA robot only does what the code says. Ask your child what might happen if one command is missing or in the wrong place.
- TracingTracing means following code one command at a time. Ask them to point to the square they are on after each command.
- DebuggingA bug is a mistake in the code. Finding it is a skill. Ask where the route first stops matching the plan.
- RepeatsWriting x after a command is a shorter way to show the same command done several times. Ask when that saves writing.
Key words
- AlgorithmA set of step by step instructions to do a task.
- CodeInstructions written so that a computer or robot can follow them.
- TraceFollow code one step at a time to see what it does.
- BugA mistake in code that stops it doing what you planned.
- DebugFind a bug and fix it.
- RepeatDo the same command more than once. On this sheet, x shows a repeat.
How to use it
- Print both pages. Page 1 is for your child. Keep page 2, which has the notes and answers.
- Read the key together. Ask your child to explain in their own words what each command does.
- Work through the first code question together, tracing with a pencil tip. Then let your child try the next ones alone.
- For the faulty routes, trace the code command by command and find the first place it leaves the route. Then fix it.
- Check against page 2. Ask, "How did you know where the bug was?" Come back another day to redo any routes that felt tricky.
Help, stretch and game ideas
If it feels too hard
Let your child walk the grid with a finger, saying each command aloud. Begin with the first two code questions and leave the rest for later. Tracing a finished route before writing a new one can also make the key feel more familiar.
To stretch confident children
Ask your child to write their own faulty code for a partner on the back of the sheet. It must have exactly one bug. The partner traces it, finds the bug and writes the corrected code. Then they swap roles.
Make it a game
Play in pairs. One child reads the code aloud, slowly, one command at a time. The other moves a pencil tip across the grid. When the code ends, check the square together, then swap roles.
Mistakes to watch for
Watch forThe code skips a step, so the robot ends up in the wrong square.
Try thisTrace the code with a pencil tip, one command at a time. Stop at the square where the plan and the pencil part ways, and look again at that command.
Watch forA child changes the whole route when only one command is the bug.
Try thisAsk them to find the first command that takes the robot off the route. Keep the commands before it and change from there.
Watch forThe repeat is written but the child traces it once, or the other way round.
Try thisRead the repeat aloud in full, such as saying the command the right number of times. Trace it slowly while counting.
Talk about it
- What does each command in the key make the robot do?
- How did you decide which command to write first?
- Where did the faulty route first go off course?
- How could you check your code before you hand it in?
- When did using x for repeats help, and when did it not?
- If a robot could only follow your code, what might go wrong?
Take it off the page
Human robot
Mark a small grid on the floor with masking tape or chalk where it is safe to do so. One person is the robot and another gives commands one at a time. Swap roles.
Draw your own grid
Draw a grid on squared paper, label rows and columns, and mark a start and a goal. Write the code to get from one to the other, then give it to someone to trace.
Direction words
Play a game where one person gives step by step directions to a hidden object in a room. The other follows them exactly and says where they ended up.
Who it is for
Parents
Sit beside your child for the first code question and let them lead. Ask them to say each command aloud while they trace. Stop when they are ready to stop, and come back to the rest another day.
Teachers
Use it as a starter or plenary after teaching algorithms, as an early finisher task or as a table activity. It relates to the Key Stage 2 computing strand on writing and debugging programs. Page 2 has support and stretch ideas.
Home educators
This works well as a quiet, screen free task alongside other computing or logic work. Print it again for brothers and sisters, or return to the faulty routes a few weeks later to see how the tracing has settled.
Where this fits
Before this, children usually practise giving and following simple directions, such as moving a person or a toy around a room. They also learn that instructions must be in the right order and clear enough to follow exactly.
After this, children can write longer programs with more repeats, and test and improve them. They may move on to programming a floor robot or using block coding on a screen, where the same habits of tracing and debugging apply.
Keep practising
If this sheet went well, find more in our school trip activities for Tower of London, Year 4 Algorithms worksheets and Year 4 computing worksheets, or try Code a Balanced Hall Front, Debug the Garden Walk, Loop the Pattern or Code the 1690s Maze next.
Browse: Mini Minds Hub > school trip activities for Tower of London > Year 4 worksheets and games > Year 4 computing worksheets > Year 4 Algorithms worksheets
Questions parents and teachers ask
- What age is Program the Tower Route for?
It is written for Year 4, ages 8 to 9, in Key Stage 2. Younger children may manage the first questions with help. Older children can use the faulty routes and the stretch idea for extra challenge.
- What will children practise?
Children practise writing algorithms, tracing code and debugging faulty routes on a grid. They also use logical reasoning, and they use x to show repeats in one of the code questions.
- How long does it take?
There is no set time. Children can work at their own pace, and the first code questions make a natural place to stop and come back another day. Page 2 has ideas to make it shorter or longer.
- Do we need a robot?
No. A pencil tip or a finger works well for tracing each route. If you have a floor robot, you can use it to act out a route, but the sheet does not need one.
- What is debugging?
Debugging means finding and fixing a mistake in code. On this sheet, children trace a faulty route command by command, find the first place it leaves the plan, and then write a corrected version.
- What if my child's code is different from the answers?
Trace it with them. If it follows the key and ends in the right place, it may be a different way to reach the same square. If it does not, they look again at the step where it goes off course.
- Is this a screen free activity?
Yes. It needs only paper and a pencil, so it suits quiet time, rainy days and school holidays. It also works in class as a starter, plenary or early finisher task.
Preview the full PDF
More worksheets like this
Made by Jaques of London, making games for families since 1795. A printable supports classroom learning and does not replace a teacher.



