Mini Minds Hub · Free printable
Maze Solving Algorithm: Free Printable Worksheet for Year 7
In short: Free printable Maze Solving Algorithm for Year 7 (ages 11 to 12). Work down the questions in order, using the grid and Rule A as printed.
- ForYear 7
- StageKey Stage 3
- CostFree
- FormatPrintable PDF
Maze Solving Algorithm asks Year 7 children (ages 11 to 12) to trace a walker through a maze using written commands, follow a rule that makes decisions, explain where the rule fails and then fix it. It suits pupils meeting algorithms and debugging on paper in Key Stage 3 Computing. It takes about 25 minutes and needs a pencil. Page 2 gives the grown-up notes, help, a stretch idea and the answers.
Before your child writes anything, model the first question with your own finger on the grid, saying each command aloud as the finger moves. Then ask them to name the square after every command. When Rule A appears, the usual slip is to jump to where the walker seems to be heading. Ask them to read the rule again at each square instead.
What is on the sheet
Children work with a grid whose squares have a letter and a number, such as C3, with a start square marked S and a square marked X. They trace a walker through the maze using commands written as letters. They fill in a table, count the commands in their own list and follow Rule A square by square. Later questions ask them to explain why the walker never reaches X, then fix Rule A by adding one new decision. Each question has space for an answer.
- Row
- A
- B
- C
- D
- E
- The walker follows F F from S. Which square is it in now?
- How many commands are in your list from question 3?
- Follow Rule A from S. In which square does the walker first turn R?
- Follow Rule A past square C3. Explain why the walker never reaches X.
- Fix Rule A by adding one new decision about the square on the left.
How the sheet builds up
Trace a list of commands
Children start by following a short list of commands from S and saying which square the walker has reached. Moving a finger along the grid keeps each step visible.
Count and record
They look at their own command list and count what is in it. This makes them treat the list as a precise set of instructions, not a rough sketch of a route.
Follow a rule with decisions
Rule A makes the walker choose what to do depending on where it is. Children check the rule at each square instead of planning the whole route in their heads.
Explain and fix
The last questions ask for a written reason and then a repair. Children say what goes wrong, then add one new decision to Rule A so the walker behaves differently.
Why algorithms and mazes go together
An algorithm is a clear set of steps for solving a problem. Computers cannot guess what we mean, so each step has to be exact. A maze is a good place to practise this because the walker can only do what the instructions say. If the instructions are vague or incomplete, the walker ends up somewhere unexpected, and children can see the result straight away.
Many algorithms need decisions. A decision checks a condition, such as what is next to the walker, and then picks what to do. In flowcharts, decisions are usually drawn as diamond shapes with two ways out. Debugging means finding a fault in a set of instructions and changing it. Tracing by hand, one step at a time, is one of the most reliable ways to find where a fault begins.
Skills and curriculum link
- Writing algorithms
- Tracing step by step
- Debugging
- Decisions in flowcharts
- Explaining reasoning
Ideas that help with algorithms
- Exact stepsAn algorithm works only if every step is clear. A walker cannot guess what the writer meant, so each command has to say exactly what to do.
- Order mattersThe same commands in a different order can send the walker somewhere else. Reading the list from the top, one command at a time, keeps the order safe.
- Decisions need a conditionA decision looks at something true or false about the current square, then picks what happens next. Naming the condition clearly makes a rule easier to follow and to fix.
- Tracing finds faultsWriting down the square after every step shows exactly where a rule stops doing what you wanted. The fault is usually at one particular square.
Key words
- AlgorithmA set of clear steps that solves a problem or completes a task.
- CommandOne instruction in an algorithm, telling the walker what to do.
- SequenceCommands carried out one after another in a fixed order.
- DecisionA point where the algorithm checks something and chooses what to do next.
- TraceTo follow an algorithm step by step and record what happens at each one.
- DebugTo find a fault in instructions and change them so they work.
How to use it
- Print both pages. Page 1 is for your child. Keep page 2, which has the notes and answers.
- Allow about 25 minutes. Look at the grid together and find S before any writing starts.
- Have your child trace each route with a finger on the grid and say each command aloud before they write it.
- Work through the first few questions together, then let them continue alone. Ask them to explain each choice.
- Check against the notes and answers on page 2. Ask which square a mistake began at, then come back to the sheet another day.
Help, stretch and game ideas
If it feels too hard
Start with questions 1 to 3. Trace the route with a finger on the grid and say each command aloud before writing it. Name the square the walker is in after every command. Leave the Rule A questions for another day if they would help.
To stretch confident children
Trace your fix for question 10 from S, and note each square visited on the answer line. Then ask whether your new decision could cause a different problem somewhere else in the maze.
Make it a game
Draw a small maze on squared paper, then swap with a partner. Write a list of commands for the other person's maze and test each other's lists with a finger. Check whether each walker reaches the end.
Mistakes to watch for
Watch forA child skips a command while tracing, so the walker ends in the wrong square.
Try thisAsk them to say each command aloud and move a finger once for each one. Tick commands off as they go.
Watch forA child decides where the walker should end up and then writes a reason to match.
Try thisCover the rest of the grid. Ask them to apply Rule A to one square at a time and write down what the rule says to do.
Watch forA child's fix to Rule A is too vague, such as saying the walker should turn when it needs to.
Try thisAsk what the walker can check on the square to its left. Write the fix as a clear condition and a clear action.
Talk about it
- Why does a walker need exact commands when a person would manage with a hint?
- How did you decide which square the walker was in after each command?
- What does Rule A check at each square, and what does it do about it?
- Where exactly did the rule stop working, and what made you sure?
- Could your new decision cause a problem in a different maze? How could you test it?
- Where do you follow step by step instructions in everyday life?
Take it off the page
Human robot
One person gives a short list of commands and the other walks across a room, following them exactly. Swap roles. Notice what happens when a command is unclear.
Chalk or tape maze
Mark a simple maze on a patio floor or hall with chalk or masking tape. Write a command list for a friend to follow, then test it and fix any bugs.
Routine algorithm
Write the steps for a daily routine, such as packing a school bag, including one decision. Ask someone to follow your steps exactly and see what they miss.
Who it is for
Parents
Sit with your child for the first few questions and let them lead. Ask them to say each command aloud as they trace it. Short sessions work well, and the last questions can wait for another day.
Teachers
Use it as a starter, plenary, early finisher task, homework or table activity in Key Stage 3 Computing. It needs no preparation beyond printing. Page 2 has support and stretch ideas, so mixed groups can work on the same sheet.
Home educators
Print it as part of a wider computing plan. It pairs well with drawing mazes, giving spoken directions and any unplugged programming you already do. Because it is on paper, it can be used again for revision a few weeks later.
Where this fits in computing
Before this, children usually practise following and writing short sequences of instructions, and they meet the idea that computers do exactly what they are told. Tracing a route on a grid is a common first step.
After this, pupils move on to algorithms that repeat steps, use decisions inside repeats and are written as flowcharts or in a programming language. The habit of tracing by hand to find a fault carries straight into that work.
Keep practising
If this sheet went well, find more in our school trip activities for Hampton Court Palace, Year 7 computing worksheets and Year 7 worksheets and games, or try Norman Castle Cipher Test, Build a Plant Database, AND, OR, NOT or Fake Friend Request Files next.
Browse: Mini Minds Hub > school trip activities for Hampton Court Palace > Year 7 worksheets and games > Year 7 computing worksheets
Questions parents and teachers ask
- What age is Maze Solving Algorithm for?
It is written for Year 7 (ages 11 to 12), in Key Stage 3. It suits pupils learning to write, trace and improve algorithms in Computing. Older or younger learners can use it if the grid and decisions suit them.
- How long does it take?
It takes about 25 minutes. Allow a little longer if your child talks through each command aloud, which is worth doing. The last questions can wait for another day if time runs short.
- What will children practise?
They practise writing, tracing and improving step by step instructions and decisions that guide a walker through a maze. They also explain why a rule fails and fix it by adding a decision.
- What if it feels too hard?
Start with questions 1 to 3. Have your child trace the route with a finger on the grid and say each command aloud before writing it. Come back to the Rule A questions another day.
- Do we need a computer?
No. It is a screen free activity that needs paper and a pencil. Tracing by hand is useful practice, because it shows exactly where a set of instructions stops doing what was intended.
- Can teachers use it in class?
Yes. It works as a starter, plenary, early finisher task, homework or table activity. It needs no preparation beyond printing, and page 2 has support and stretch ideas for mixed ability groups.
- Is it free, and do I need colour printing?
Yes, it is free to print for home and classroom use. No colour is needed. It prints well in black and white on plain A4 paper, with page 1 for the child and page 2 for the grown-up.
Preview the full PDF
More worksheets like this
Learn it through play: toys and games from Jaques
Made by Jaques of London, making games for families since 1795. A printable supports classroom learning and does not replace a teacher.



