Mini Minds Hub · Free printable

Debug the Garden Route: Free Printable Worksheet for Year 6

In short: Free printable Debug the Garden Route for Year 6 (ages 10 to 11). Write, follow and fix plans on a made up garden map. No device needed.

  • ForYear 6
  • StageKey Stage 2
  • CostFree
  • FormatPrintable PDF

Debug the Garden Route is a computing activity for Year 6 (ages 10 to 11). Children write, follow and fix plans on a made up garden map, using loops to repeat steps. It suits children who can already give a short set of directions and are ready to spot why a plan goes off course. It takes about 30 minutes with a pencil and needs no device.

Before anyone writes, put a counter on the map and move it one square for each instruction, saying each instruction aloud as you go. The usual slip is counting the square the counter starts on as a move. If a plan ends in the wrong place, ask your child to point to the exact step where the counter left the route. That step is the bug.

What is on the sheet

Children work with a made up garden map on a grid. There is a table to fill in, and numbered questions with space to write each answer. Children write plans, follow plans that are already written and fix plans that do not work. The plans use loops, which means a set of steps is repeated. Each plan is traced on the map with a finger before anything is written down. Items 1 and 2 are a good place to begin.

  • Row
  • A
  • B
  • C
  • D
  • E

Before you start

Walk it first

Ask your child to give you directions across a room, one step at a time. Follow them exactly, even when they are unclear. This shows why plans need to be precise.

Spot the pattern

Say a short set of steps that repeats, such as step, step, turn, step, step, turn. Ask what is being repeated. That repeated part is what a loop will hold.

Agree a rule

Decide together that one instruction moves the counter one square. Keeping to one rule makes every plan easier to follow and check.

Why debugging matters in computing

An algorithm is a set of clear steps that leads to a result. Computers follow algorithms exactly as written, so a small slip in the order or the count can send the whole plan the wrong way. Finding and fixing that slip is called debugging. It is a normal part of writing any program, and experienced programmers do it all the time.

A loop lets a plan repeat a set of steps without writing them out again and again. Loops make plans shorter, but they also make mistakes easier to hide, because one wrong repeat count changes everything that follows. Working on paper lets children slow down, trace each step with a finger and see exactly where a plan stops matching the route they wanted.

Quick facts about algorithms

  • An algorithm is a set of steps that are followed in order.
  • Computers do exactly what the instructions say, not what the programmer meant.
  • A mistake in a set of instructions is called a bug.
  • A loop repeats a set of steps so they do not need to be written out many times.
  • Programmers test their plans and fix bugs again and again as they work.

Skills and curriculum link

  • Writing algorithms
  • Using loops
  • Tracing algorithms
  • Debugging
  • Careful reading
  • Explaining thinking

Ideas that help children

  • AlgorithmAn algorithm is a list of steps in a clear order. Change the order and the result can change too.
  • LoopA loop holds steps that repeat. Read what is inside the loop, then check how many times it repeats.
  • BugA bug is a mistake in a plan. It might be a missing step, a step in the wrong place or a wrong repeat count.
  • TraceTo trace a plan is to follow it one step at a time and mark where you are after each step. A counter or a finger helps.

Key words

  • AlgorithmA set of steps to follow in order to do a job.
  • LoopA part of a plan that repeats.
  • DebugTo find a mistake in a plan and fix it.
  • BugA mistake in a plan that stops it working as intended.
  • TraceTo follow a plan step by step to see what it does.
  • InstructionOne clear step that tells you what to do.

How to use it

  1. Print both pages. Page 1 is for your child. Keep page 2, which has the notes and answers.
  2. Look at the map together. Put a counter on it and move it one square for each instruction.
  3. Work through items 1 and 2 together. Let your child trace each plan with a finger before writing an answer.
  4. Let your child carry on alone. Allow about 30 minutes with a pencil, and stop early if they need a break.
  5. Check against page 2. Ask, "Where did the plan go off course?" Come back another day to repeat the ones that felt tricky.

Help, stretch and game ideas

If it feels too hard

Put a counter on the map and move it one square per instruction. Say each instruction aloud as you move. Work through items 1 and 2 together first, then let your child try the next one with you watching rather than leading.

To stretch confident children

On the back of the sheet, write a faulty plan with two bugs. Swap with a partner who finds and fixes both. Ask them to explain how they knew where each bug was, not only what the fix is.

Make it a game

Work in pairs. One reads a plan aloud while the other moves a counter on the map. Then swap roles. Compare finishing squares. If they differ, trace the plan again together and find where the two counters parted.

Mistakes to watch for

Watch forA child counts the starting square as the first move, so the counter finishes one square out.

Try thisMark the start with a small cross. Say that the first instruction moves the counter off the cross.

Watch forA child repeats only part of a loop, or repeats the wrong part.

Try thisUnderline everything inside the loop. Trace the whole underlined set each time it repeats.

Watch forA child rewrites the whole plan when it goes wrong.

Try thisTrace it again and stop where the counter leaves the route. Change that step first, then trace the plan once more.

Talk about it

  • Where did the counter leave the route, and which step sent it there?
  • How did you know how many times the loop repeats?
  • What would change if the loop repeated one more time?
  • Is there more than one way to fix this plan?
  • Why is it useful to write a plan with a loop instead of listing every step?
  • What did you check first when a plan did not work?

Take it off the page

Human robot

Mark a grid on the floor with chalk or masking tape. One person is the robot and follows spoken instructions, one square per step. Swap roles. Add a loop by saying, "Do this twice."

Garden of your own

Draw a small grid on paper and add flower beds, a pond and a path. Write a plan that takes a counter from one corner to another. Ask someone to trace it.

Fix the directions

Write directions from your front door to a place in the house. Ask a family member to follow them exactly. Fix any step that sends them the wrong way.

Who it is for

Parents

Sit beside your child for items 1 and 2, then let them lead. Use a counter and keep to one square per instruction. If a plan fails, ask where the counter left the route rather than giving the fix.

Teachers

Use it as a starter, plenary, early finisher task, homework or table activity. It needs no preparation beyond printing. Page 2 has support and stretch ideas for mixed groups, and the counter and partner ideas work well in pairs.

Home educators

Print it as part of a wider computing plan, or use it to revisit loops and debugging. Let children explain their reasoning aloud. It pairs well with floor grid games and drawing maps, and can be reused for brothers, sisters or revision.

Where this fits

Before this, children give and follow short sets of instructions, and learn that order matters in a plan. They also start to see that a computer needs clear steps, with nothing left to guess.

After this, children can move to writing programs with repetition on screen, such as in block based tools, and to testing and fixing their own code. The habit of tracing a plan step by step and finding where it goes off course carries straight across.

Keep practising

If this sheet went well, find more in our school trip activities for Bridgewater, Year 6 Algorithms worksheets and Year 6 computing worksheets, or try Crack the Jewels Cipher, Crack the Code by Counting, Think Before You Post or Playground Logic Files next.

Browse: Mini Minds Hub > school trip activities for Bridgewater > Year 6 worksheets and games > Year 6 computing worksheets > Year 6 Algorithms worksheets

Questions parents and teachers ask

What age is Debug the Garden Route for?

It is written for Year 6 (ages 10 to 11), in Key Stage 2. Children who have already met simple instructions and want practice with loops and debugging will find it a good fit.

What will children practise?

Children practise writing, tracing and debugging algorithms that use loops on a grid map. They follow plans one step at a time, find where a plan goes wrong and change it so it works.

How long does it take?

Allow about 30 minutes with a pencil. If time is short, work through items 1 and 2 together and come back to the rest on another day.

What if it feels too hard?

Put a counter on the map and move it one square per instruction. Work through items 1 and 2 together first. Ask your child to say each instruction aloud as the counter moves.

Is it free?

Yes. It is free to print for home and classroom use. Black and white printing works well on plain A4 paper, so no colour is needed.

Is this a screen free activity?

Yes. It needs only paper, a pencil and a counter if you want one. It works for quiet time, rainy days and school holidays, and children can use it without a device.

Can teachers and home educators use it?

Yes. Teachers can use it as a starter, plenary, early finisher task, homework or table activity. Home educators and tutors can use it alone or as part of a wider computing plan.

Preview the full PDF

Made by Jaques of London, making games for families since 1795. A printable supports classroom learning and does not replace a teacher.