Mini Minds Hub · Free printable

Code a Path Through Gardens: Free Printable Worksheet for Year 1

In short: Free printable Code a Path Through Gardens for Year 1 (ages 5 to 6). Follow each arrow code. Then write one and fix one. With answers for grown-ups.

  • ForYear 1
  • StageKey Stage 1
  • CostFree
  • FormatPrintable PDF

Code a Path Through Gardens asks Year 1 children (ages 5 to 6) to follow arrow codes on a garden grid, write a code of their own, and fix codes that contain bugs. It suits children who are meeting computing for the first time, and it needs a pencil and nothing else. Page 2 gives the grown-up notes, help ideas, a stretch idea and the answers.

Before they start, sketch a small grid on scrap paper and show the method once with your own code. Put a finger on the Gate, say the arrow aloud, then slide one square. The usual slip is counting the Gate as the first move, which leaves the finger one square short. Try the phrase "one arrow, one move" and let your child say it with you.

What is on the sheet

Children start at the Gate on a garden grid and follow arrow codes one square at a time. The first four codes use arrows that point right and down, and children name the place where they stop. Then they write their own code from the Gate to Veg, using two → and two ↓ in any order. Last, they find and fix bugs in codes that do not work. The sheet has a table to fill in and numbered questions with space to answer.

  • Gate
  • Pond
  • Tree
  • Start at the Gate. Code: →. Where do you stop?
  • Start at the Gate. Code: ↓ ↓. Where do you stop?
  • Start at the Gate. Code: → → ↓. Where do you stop?
  • Start at the Gate. Code: ↓ → ↓. Where do you stop?
  • Write a code from the Gate to Veg. Use two → and two ↓ in any order.

How to read an arrow code

Start on the Gate

Every code on the sheet begins at the Gate. The finger rests there before any arrow is read. Resting is not a move.

One arrow, one square

Each arrow tells you to move one square in the direction it points. Read the arrows in order, from left to right, and move after each one.

Stop when the code stops

When the last arrow has been used, the finger stays where it is. The square under it is where the path ends.

Check by tracing again

Go back to the Gate and trace the whole code a second time. If the finger lands in the same place, the answer is likely to be secure.

Why arrows teach computing

A computer does exactly what its instructions say, in the order they are given. A list of steps in order is called a sequence, and a clear set of steps for a job is called an algorithm. Arrow codes are a small, friendly way to meet these ideas, because every arrow is one instruction and the order matters.

When a code does not reach the place it was meant to, the mistake is called a bug. Finding and fixing it is called debugging. Programmers do this all the time, so a bug is useful information, not a failure. On this sheet, children get to be the one who spots what needs to change and says why.

Did you know?

  • A computer follows its instructions exactly, even when they are not what the writer meant.
  • A mistake in a set of instructions is called a bug.
  • Changing instructions so they work is called debugging.
  • Instructions are given in a set order, and changing the order can change the result.
  • A short list of steps for doing a job is called an algorithm.

Skills and curriculum link

  • Following instructions in order
  • Reading arrow codes
  • Writing a simple code
  • Finding and fixing bugs
  • Checking by tracing again

Ideas to help you explain

  • Order mattersCompare a code to getting dressed. Socks before shoes works, and shoes before socks gives a different result. Arrows work the same way, so the order changes where the path ends.
  • Each arrow is one stepAn arrow is a single instruction. It does not mean "keep going". Showing this with a finger, one square at a time, makes it concrete.
  • Computers are literalA computer cannot guess what we meant. It only follows what is written. If the path ends in the wrong place, the code needs to change, not the computer.
  • Checking is part of codingProgrammers test their code by running it. Tracing a code again from the Gate is the paper version of running it.

Key words

  • CodeA set of instructions written so someone, or something, can follow them.
  • ArrowA symbol that points. On this sheet it tells you which way to move.
  • InstructionOne step that tells you what to do.
  • SequenceSteps in the right order, one after another.
  • BugA mistake in a code that stops it doing what you wanted.
  • DebugFind a bug and fix it.

How to use it

  1. Print both pages. Page 1 is for your child. Keep page 2, which has the notes and answers.
  2. Show the method on a rough grid of your own. Finger on the Gate, say the arrow, move one square.
  3. Let your child trace numbers 1 to 4 with a finger, saying each arrow aloud before they move.
  4. Move on to writing a code in number 5, then fix the bugs in numbers 6 and 7. Ask, "How did you know what to change?"
  5. Check with page 2 together. Come back another day to trace again any codes that felt tricky.

Help, stretch and game ideas

If it feels too hard

Let your child touch the Gate and say each arrow aloud as they move. Cover the grid except the row they are on, so there is less to look at. Tick each arrow in the code once it has been used.

To stretch confident children

Write a second, different code from the Gate to Veg on the back of the sheet. Swap it with a partner and trace each other's code to check it. Then make one deliberate bug and ask your partner to fix it.

Make it a game

Work in pairs. One child reads the arrows aloud while the other moves a finger on the grid. Swap roles for number 7. Afterwards, one player makes up a short code and the other says where it will stop before tracing.

Mistakes to watch for

Watch forA child counts the Gate as the first move, so the finger ends one square short.

Try thisRest the finger on the Gate first. Say, "Start here, no move yet." Then move on the first arrow.

Watch forA child moves across when the arrow points down, or down when it points right.

Try thisDraw a small right arrow and a small down arrow at the edge of the page. Check each arrow against them before moving.

Watch forA child skips an arrow or uses one twice, so the path ends in a different place.

Try thisTick each arrow in pencil as it is used. If the answer feels odd, trace again from the Gate.

Watch forIn number 5, a child writes three of one arrow, or forgets one of the arrows asked for.

Try thisReread the question together, then count the arrows written. Ask, "How many of each did the question ask for?"

Talk about it

  • What did you do first, before you moved any arrows?
  • How did you know where to stop?
  • If we swapped the order of two arrows, would the path change? Why?
  • Which arrow did you find trickiest to follow? What helped?
  • How did you spot the bug? What did you change?
  • Where else do we follow steps in order, like a recipe or getting ready for school?

Take it off the page

Floor grid

Make a grid on the floor with masking tape or chalk. One child is the robot and stands on the start square. The other says one arrow at a time, and the robot moves one square.

Garden walk

Next time you are outdoors, give a family member a short list of steps such as "two steps forward, one step left". Check whether they end where you planned. Then fix the list together.

Draw a garden map

On squared paper, draw a simple garden with a gate and a few features. Write an arrow code to get from one place to another, then ask someone to trace it.

Who it is for

Parents

Sit beside your child for the first code, then let them lead. Ask them to say the arrows aloud while they trace. If a path ends in the wrong place, treat it as a clue and trace again together.

Teachers

Use it as a starter, a plenary after teaching simple instructions, or an early finisher task. Pairs can read and trace for each other. Page 2 has support and stretch ideas, and it needs no preparation beyond printing.

Home educators

Print it as part of a wider computing plan and pair it with floor grid games or a garden walk. Children of different ages can share one grid, with older ones writing the codes. You can print it again for revision later.

Where this skill fits

Before this sheet, children meet the idea of giving and following directions in everyday play, such as forward, back, left and right. They also learn that instructions work best when they are clear and in the right order.

The National Curriculum for Key Stage 1 asks children to create and debug simple programs, and to predict what simple programs will do. This sheet practises that strand through arrows on paper. Later, codes can grow longer, use more kinds of move, and lead to programming on screen or with floor robots.

Keep practising

If this sheet went well, find more in our Year 1 computing worksheets guide, or try Robot to the Glasshouse, Harriet's Safe Screen Day, Robo's Salon Steps Comic or Safe Screen Choices next.

Questions parents and teachers ask

What age is Code a Path Through Gardens for?

It is written for Year 1 (ages 5 to 6), in Key Stage 1. Older children can use it as a quick warm up, and the stretch idea on page 2 gives them something extra to try.

How long does it take?

There is no fixed time. Children can follow the arrows in numbers 1 to 4 first, then come back for numbers 5 to 7 on another day. Stopping after number 4 is a fine way to break it up.

What if my child finds it hard?

Let them touch the Gate and say each arrow aloud as they move. You can also cover the grid except the row they are on. Tick each arrow once it has been used, so they keep their place.

What is a bug?

A bug is a mistake in a code that stops it doing what was intended. On this sheet, children find bugs in numbers 6 and 7 and fix them. Fixing a bug is called debugging.

Is this a screen free activity?

Yes. It needs only paper and a pencil. It teaches computing ideas such as sequence and debugging without a device, which makes it suitable for quiet time, rainy days and holidays.

Can teachers use it in class?

Yes. It works as a starter, a plenary, an early finisher task, homework or a table activity. It needs no preparation beyond printing, and page 2 has support and stretch ideas.

Do I need to print in colour?

No. It prints well in black and white on plain A4 paper. A pencil is all your child needs to trace, write a code and mark fixes.

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.