Mini Minds Hub · Free printable

Ollie's Rule Maze: Free Printable Worksheet for Year 4

In short: Free printable Ollie's Rule Maze for Year 4 (ages 8 to 9). Screen-free, with answers and notes for grown-ups.

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

Ollie's Rule Maze asks Year 4 children (ages 8 to 9) to act as a robot in a grid maze. They follow one IF, THEN, ELSE rule from the start square S to the finish square F. They fill in a table, answer numbered questions and explain a turn in their own words. It suits children who are ready to follow a rule exactly and say why it works.

Before they start, play the first move aloud together. Point to the square ahead and ask the rule's question: is there a wall or the edge ahead? Then do what the rule says. The usual slip is to turn and move forward in the same go. The rule gives one or the other each time, so ask the question again after every turn.

What is on the sheet

Children start at S facing right and follow the rule one move at a time. The sheet has a grid with rows labelled A to D, a table to fill in and numbered questions with space to answer. The questions ask where the robot ends up after a set number of squares, which square is ahead from a given position, and why the robot turns at one square instead of walking on. Children can write step numbers in the blank squares as they go.

  • Row
  • A
  • B
  • C
  • D
  • The robot moves 3 squares from S. Which square is it on now?
  • The robot is on A3 facing up. Which square is the wall ahead?
  • Explain why the robot turns at A3 and does not walk on.

What is an IF rule in computing?

A program is a set of instructions that a computer or robot follows. Computers do exactly what the instructions say, in the order given. They do not guess what the programmer meant. That is why programmers write instructions that are clear and complete, and why they test them by following them one step at a time.

An IF rule lets a program choose. It checks something, and the answer decides what happens next. IF the check is true, the program does the THEN part. ELSE gives the other choice, for when the check is not true. In this maze the robot checks the square ahead before every move, so the maze itself decides the route.

Following a program by hand, one step at a time, is called tracing. It is how programmers find mistakes in their own work.

Facts about rules and programs

  • A program is a list of instructions for a computer to follow.
  • Computers follow instructions exactly, even when the instruction is not what the programmer wanted.
  • The word IF is used in many programming languages to make a choice.
  • Finding and fixing mistakes in a program is called debugging.
  • Some robots used in classrooms follow instructions to move forward and to turn.

Skills and curriculum link

  • Using IF and THEN
  • Tracing a program
  • Counting steps
  • Following a rule exactly
  • Explaining reasons
  • Reading a grid

Ideas that help with this sheet

  • SequenceInstructions happen in an order. Changing the order can change where the robot ends up.
  • SelectionA program can choose between two actions. The choice depends on a check, such as what is ahead.
  • Turning rightA right turn is a quarter turn clockwise. Think of a clock hand moving a quarter of the way round the face.
  • Grid referencesA square can be named by its row letter and its column number. Read the letter first, then the number.

Key words

  • IFThe check a program makes before it chooses what to do.
  • THENWhat the program does when the check is true.
  • ELSEWhat the program does when the check is not true.
  • ProgramA set of instructions for a robot or computer to follow.
  • TraceFollow a program step by step and write down what happens at each one.
  • GridRows and columns of squares. Each square can be named with a letter and a number.

How to use it

  1. Print both pages. Page 1 is for your child. Keep page 2, which has the notes and answers.
  2. Read the rule aloud together. Ask your child to say it again in their own words.
  3. Do the first few moves together with a pencil tip. Ask the rule's question before each move.
  4. Let your child trace the rest alone, writing step numbers in the blank squares. Crossing out a first go is fine.
  5. Check with page 2. Ask your child to explain one turn aloud, then come back another day to try again.

Help, stretch and game ideas

If it feels too hard

Let your child rest a pencil tip on S. You read the rule aloud after each move, and they move the pencil tip to match. Pause so they can look at the square ahead each time. Start with the first few moves and return to the rest later.

To stretch confident children

Ask your child to say aloud where the robot would go if the rule said turn left instead of turn right. Then they test it with a pencil and check their prediction. Ask what changed on the route and why.

Make it a game

Swap sheets with a partner. One person reads the rule aloud, move by move, while the other moves a pencil tip along the grid. Swap roles, then compare your counts of the steps. If the counts differ, trace the route again together.

Mistakes to watch for

Watch forA child turns and moves forward in the same go.

Try thisRead the rule aloud and point out that ELSE means if not. One of the two things happens each time, then the rule is read again.

Watch forA child looks at the square they are standing on instead of the square ahead.

Try thisRest a finger on the square directly ahead of the robot, in the direction it is facing, and ask the rule's question about that square.

Watch forA child counts the square the robot starts on as one of its moves.

Try thisAgree that a move means going into a new square. Write the step number in each new square as the robot enters it.

Talk about it

  • Can you say the rule in your own words without looking at it?
  • What does the robot check before every move?
  • What does ELSE mean in this rule?
  • How could you check your route without starting again?
  • What do you think would change if the rule said turn left?
  • Where could a different rule make the robot get lost?

Take it off the page

Human robot

Draw a grid with chalk outside or use tape indoors. One person is the robot and follows the rule while another reads it aloud. Swap roles.

Design a maze

On squared paper, draw a small maze with walls marked X, a start and a finish. Swap with someone and trace each other's mazes using the rule.

Everyday rules

Write IF, THEN, ELSE rules for ordinary life. For example: IF it is raining, THEN take a coat, ELSE leave it at home. Read them aloud and test them.

Who it is for

Parents

Sit beside your child for the first few moves, then let them lead. Ask the rule's question aloud before each move. If they get stuck, offer the pencil tip idea and stay quiet while they move it.

Teachers

Use it as a starter, a plenary after teaching selection, an early finisher task or a table activity. It needs no preparation beyond printing. Page 2 has support and stretch ideas for mixed groups. It is practice and does not replace teaching.

Home educators

Print it as part of a wider computing plan. Talk through the rule before your child starts, then ask them to explain one turn aloud. It can be used again later for brothers, sisters or revision.

Where this fits in computing

Before this, children usually follow short sets of instructions in order, such as moving a robot or a character a set number of squares. They learn that instructions need to be exact, because a computer cannot guess what was meant.

After this, children can write rules of their own, test them and fix mistakes. They can also meet rules that repeat or choose between more than two actions. Tracing a rule by hand, as here, helps them read other people's programs and spot where their own go wrong.

Keep practising

If this sheet went well, find more in our Year 4 computing worksheets guide, or try Robot Charger Arrow Maze, Debug the Sandwich Robot, Paper Robot Algorithm Craft or Loop the Treasure Trail next.

Questions parents and teachers ask

What age is Ollie's Rule Maze for?

It is written for Year 4 (ages 8 to 9), in Key Stage 2. Children in nearby year groups can try it too, with a grown-up adjusting the support or the stretch idea to suit.

What will children practise?

They practise tracing a program with an IF rule through a grid maze and counting its steps. They also explain in words why the robot behaves as it does, which is a useful habit in computing.

How long does it take?

No set time is given, because it depends on the child and on how much you talk it through. Children can stop after any question and come back another day, so there is no need to finish in one go.

What if it feels too hard?

Let your child move a pencil tip along the grid while you read the rule aloud after each move. Do the first few moves together, then hand over. Crossing out a first go is fine, because trying again is part of tracing.

Does it need a computer?

No. It is a screen free activity that needs paper and a pencil. It works well for quiet time at home, a rainy afternoon or a calm moment in class, and it gets children talking about their thinking.

Does it link to the National Curriculum?

It relates to the idea of selection in programs, which sits within Key Stage 2 computing. It is a practice activity that supports classroom learning. It does not replace teaching or cover the whole programme of study.

Can teachers and home educators use it?

Yes. Teachers can use it as a starter, plenary, early finisher task or homework. Home educators and tutors can use it alone or as part of a wider plan. It needs no preparation beyond printing, and black and white works well.

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.