Mini Minds Hub · Free printable

Bug Hunt Around Town: Free Printable Worksheet for Year 5

In short: Free printable Bug Hunt Around Town for Year 5 (ages 9 to 10). Robot starts at A1 facing up. F is forward one square. L and R turn.

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

Bug Hunt Around Town asks Year 5 children (ages 9 to 10) to write, predict and debug short routes that guide a robot around a grid map. The robot starts at A1 facing up. F moves it forward one square. L and R turn it.

Before anyone writes a route, model one command at a time with a counter that has an arrow drawn on it. After each command, ask the child which way the robot now faces. The usual slip is forgetting that F moves the robot the way it faces now, not the way it started.

What is on the sheet

Children begin by predicting which square the robot reaches after a short list of commands. Next they write their own routes from A1 to places on the town map, such as the Cafe and the Library. Then they meet bug questions, where a given route may not work and they must explain why. A challenge at the end asks for a route to the School. There is a table to fill in and space to answer each question.

  • A
  • B
  • C
  • D
  • The robot does F F. Which square is it on?
  • The robot does R F F. Which square is it on?
  • Write a route from A1 to the Cafe.
  • Write a route from A1 to the Library.
  • BUG 1: R F F F L F F is meant to reach the Library. What goes wrong?
  • Will R F F L F F F reach the Library? Explain why or why not.
  • CHALLENGE: Write a route from A1 to the School.

Worked example: tracking direction

The robot faces up. It does R R L. Which way is it facing at the end?

This is a different question from the sheet. It tracks only direction, so it does not show any route on the map.

Method 1: use a counter
  1. Draw an arrow on a counter and point it up.
  2. R is a quarter turn clockwise, so the arrow now points right.
  3. The second R turns it again, so the arrow points down.
  4. L is a quarter turn the other way, so the arrow points right.
Facing right

Ways to set up a robot grid

Counter with an arrow

Draw a small arrow on a counter or a paper circle. The arrow shows which way the robot faces, so turns become easy to see.

Floor grid

Mark a grid on the floor with masking tape or chalk outside. Label the columns with letters and the rows with numbers, then walk the routes.

Paper map copy

Draw a quick copy of the map on scrap paper. Children can trace a route with a pencil line and rub it out to try again.

Command cards

Write F, L and R on small cards. Children lay them in a row to build a route, then swap a card to fix a bug.

What are algorithms and bugs?

An algorithm is a set of clear steps that solves a problem or completes a task. A recipe is an algorithm, and so is a list of directions to a friend's house. In computing, the steps must be exact and in the right order, because a computer follows each instruction without guessing what the writer meant.

A bug is a mistake in a set of instructions. Debugging means finding the mistake and fixing it. Good programmers do not just stare at the whole program. They follow it one step at a time and notice the first place where the result is not what they wanted. This sheet gives children that habit on a small, safe scale.

Algorithm facts

  • Computers do exactly what their instructions say, even when the instructions contain a mistake.
  • An algorithm does not need a computer. A recipe or a set of directions is an algorithm too.
  • In computing, a bug is a mistake in a program, and fixing it is called debugging.
  • Grid references use a letter and a number to name a square. Chess and the game Battleships use the same idea.
  • Programmers test their instructions by running them and checking the result, then fix anything that goes wrong.

Skills and curriculum link

  • Writing algorithms
  • Predicting what code does
  • Finding and fixing bugs
  • Following a sequence
  • Left and right turns
  • Reading grid references

Ideas to talk through

  • Facing directionF always moves the robot the way it is facing at that moment. A turn changes the direction, so it changes what the next F does.
  • Own left and rightL and R are the robot's own left and right. When the robot faces a different way, these are not always the same as the child's left and right.
  • Trace and testFollowing a route one command at a time, with a finger or counter, shows exactly where a robot ends up.
  • Fixing one thing at a timeWhen a route has a bug, find the first command that sends the robot the wrong way. Change that, then test the whole route again.

Key words

  • AlgorithmA set of clear steps in the right order that does a job.
  • CommandOne instruction for the robot, such as F, L or R.
  • RouteThe path the robot takes from its start square to where it needs to go.
  • BugA mistake in a set of instructions.
  • DebugTo find a bug and fix it.
  • Grid referenceA letter and a number that name one square on a map, such as A1.

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. Find A1 and point the counter up, as the robot starts. Read what F, L and R mean.
  3. Work through the first question together. Move the counter one command at a time and say the direction it faces after each one.
  4. Let your child try the route and bug questions alone. For a bug, ask them to find the first command that goes wrong.
  5. Check against page 2. Ask your child to explain one answer aloud, then come back another day to try the challenge again.

Help, stretch and game ideas

If it feels too hard

Use a toy or counter and turn it to match every command. Say the facing direction out loud after each turn. Draw a small arrow on the map after each step. Try the first questions on their own before moving on to writing routes.

To stretch confident children

Invent a broken route for a partner, with exactly one bug. Your partner must find the bug and write the fixed route. Then try the challenge route in the fewest commands you can, and compare with a friend.

Make it a game

Play robot and programmer in pairs. The programmer calls out commands from a route they wrote. The robot walks them on a floor grid. Swap roles, then try giving a route with one deliberate bug and see if the robot notices.

Mistakes to watch for

Watch forA child turns the wrong way because they use their own left and right, not the robot's.

Try thisTurn the counter or the paper so the child faces the way the robot faces. Then decide which way L or R sends it.

Watch forA child counts the start square as a move, so the robot ends one square too far.

Try thisRemind them that F moves the robot into the next square. The start square is where it already is, so it is not counted.

Watch forA child says a route is wrong but cannot say why.

Try thisTrace it with a counter and stop where it leaves the path. Ask them to name the first command that causes the problem.

Talk about it

  • How did you decide which way the robot faces after a turn?
  • Where did you start your finger when you traced the route?
  • What would happen if you swapped an L for an R in your route?
  • How can you tell a bug from a correct route?
  • Could there be a shorter route to the same place? How would you check?
  • How is giving a robot commands different from giving a person directions?

Take it off the page

Human robot

Take turns being the robot at home or in the garden. One person calls F, L and R, and the robot walks them out on squares marked on the floor.

Treasure map

Draw a grid on paper and hide a small treasure on one square. Write a command route to reach it for someone else to follow.

Everyday algorithms

Write the steps for a simple job, such as making a sandwich or getting ready for school. Swap with someone and look for any missing or muddled steps.

Who it is for

Parents

Sit with your child for the first question, then let them lead. Use a counter or small toy to move across the map. If they get stuck on a bug, ask them to say where the robot first goes the wrong way.

Teachers

Use it as a starter or plenary on algorithms and debugging, or as an early finisher task. Ask pupils to trace routes with a counter first. The stretch idea suits mixed ability groups, and page 2 has the answers.

Home educators

Print it as part of a wider computing plan and work through it unplugged. Pair it with a floor grid in the garden or living room. Brothers and sisters can take turns as robot and programmer.

Where this fits in computing

Before this sheet, children usually give and follow simple directions, such as forward, left and right, with a floor robot or a toy. They learn that a program is a set of instructions and that order matters.

After it, children can move on to longer programs with repetition and decisions, and to writing and debugging programs on screen. The habits from this sheet carry over: predict first, trace step by step, and find the first command that goes wrong.

Keep practising

If this sheet went well, find more in our Year 5 computing worksheets and Year 5 worksheets and games, or try Toy Shop Till Rules, Fewest Steps Race, Loop the Treasure Trail or Star Catcher Game Blueprint next.

Browse: Mini Minds Hub > Year 5 worksheets and games > Year 5 computing worksheets

Questions parents and teachers ask

What age is Bug Hunt Around Town for?

It is written for Year 5 (ages 9 to 10) in Key Stage 2. Children who are confident can try the challenge, and others can use a counter and work through it together.

What will children practise?

They practise writing, predicting and debugging step by step algorithms that guide a robot around a grid map. They also practise turning left and right from the robot's point of view.

Do children need a computer?

No. It is a screen free activity that needs only paper, a pencil and, if wanted, a counter. Children trace each route on the map by hand before they write their answer.

Are the answers included?

Yes. Page 2 is for the grown-up and includes the answers, along with notes on how to use the sheet, help for children who find it hard, and a stretch idea.

What if my child finds it hard?

Let them use a toy or counter and turn it to follow each command. Ask them to say which way it faces after every turn. Work through the first question together before they try alone.

What is a bug in this activity?

A bug is a mistake in the list of commands, so the robot does not reach the place it should. Children trace the route, find the first command that goes wrong and explain it.

Can I use it in class?

Yes. Teachers can use it as a starter, plenary, early finisher task, homework or table activity. It needs no preparation beyond printing, and the stretch idea suits mixed ability groups.

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.