Websink Prep UKKS2 MathsYear 4 chaptersMaths textbooksYear 1Year 2Year 4Year 5Year 6GCSEBrowse allPast papersFind a tutorBecome a tutor
Primary Maths · Year 4Chapter 10 · Position and direction
Year 4 · Coordinates and Translation · Lesson 10.7

Year 4: Routes, robots and treasure maps

Part of the Year 4 coordinates and translation chapter. Chapter overview · whole chapter on one page · Download worksheet (PDF) · Answers (PDF)

Download worksheet (PDF)Answers (PDF)
10.7

Routes, robots and treasure maps

Year 4
Describe movements between positions, Link position and direction to turns

Robots follow programs. A program is a list of instructions. Here are three instructions for a robot on a grid:

A half turn is two quarter turns, so we write R R. Remember, left and right are from the robot’s point of view, not yours.

01234512345xySE
The robot starts at S (1, 1) facing north. F3 takes it to (1, 4). R turns it to face east. F2 takes it to E (3, 4).

On a treasure map we use coordinates and compass points together. Going east makes the x-coordinate bigger. Going west makes it smaller. Going north (up) makes the y-coordinate bigger. Going south (down) makes it smaller. A treasure clue can also use a move: “the treasure is 4 right and 3 up from the old tree”.

01234561234567xystartX
Start (2, 2). 3 east, 4 north, 2 west. The treasure X is at (3, 6).

The shortest route along the grid lines from one point to another goes across and then up or down. Add the number of squares across and the number of squares up or down.

Key ideas

  • F n = forward n squares. R = turn right a quarter turn. L = turn left a quarter turn. A half turn is R R.
  • A quarter turn is a right angle. Left and right are from the robot’s point of view.
  • East: x gets bigger. West: x gets smaller. North: y gets bigger. South: y gets smaller.
  • Shortest route along grid lines = squares across + squares up or down.
Worked example 10.7.1
A robot starts at (1, 1) facing north. It follows this program: F3 R F2. Where does it finish, and which way is it facing?

Key words. A program is a list of instructions. Forward means go straight ahead. A turn left or right is a quarter turn (a right angle) unless it says half turn. A half turn is two quarter turns.

Method. Follow the instructions one at a time. F means forward, R means turn right (a quarter turn) and L means turn left (a quarter turn). Write the position after each instruction.

  1. Write the start point and the way the robot faces. We follow the program from here. The robot’s left and right depend on the way it is facing.
    Start at (1, 1), facing north.
  2. Instruction 1: F3. Forward 3 squares north.
    (1, 1) → (1, 4)
  3. Instruction 2: R. Turn right a quarter turn: now facing east.
    north → east
  4. Instruction 3: F2. Forward 2 squares east.
    (1, 4) → (3, 4)
  5. Write where the robot finishes. Look at the last position and the last way it faces.
    The robot ends at (3, 4), facing east.
    01234512345xySE

Check. Draw the path on the grid from (1, 1): it ends at (3, 4). ✓

Watch out. Turn left or right from the way the robot is facing, not from the way you are looking at the page.

Worked example 10.7.2
A robot starts at (5, 1) facing north. It follows this program: F2 L F3 R F1. Where does it finish, and which way is it facing?

Key words. A program is a list of instructions. Forward means go straight ahead. A turn left or right is a quarter turn (a right angle) unless it says half turn. A half turn is two quarter turns.

Method. Follow the instructions one at a time. F means forward, R means turn right (a quarter turn) and L means turn left (a quarter turn). Write the position after each instruction.

  1. Write the start point and the way the robot faces. We follow the program from here. The robot’s left and right depend on the way it is facing.
    Start at (5, 1), facing north.
  2. Instruction 1: F2. Forward 2 squares north.
    (5, 1) → (5, 3)
  3. Instruction 2: L. Turn left a quarter turn: now facing west.
    north → west
  4. Instruction 3: F3. Forward 3 squares west.
    (5, 3) → (2, 3)
  5. Instruction 4: R. Turn right a quarter turn: now facing north.
    west → north
  6. Instruction 5: F1. Forward 1 square north.
    (2, 3) → (2, 4)
  7. Write where the robot finishes. Look at the last position and the last way it faces.
    The robot ends at (2, 4), facing north.
    012345612345xySE

Check. Draw the path on the grid from (5, 1): it ends at (2, 4). ✓

Watch out. Turn left or right from the way the robot is facing, not from the way you are looking at the page.

Worked example 10.7.3
The robot starts at S (1, 1) facing north. Write a program that takes it along the path to E (4, 2).
0123456123456xySE

Key words. A program is a list of instructions. Forward means go straight ahead. A turn left or right is a quarter turn (a right angle) unless it says half turn. A half turn is two quarter turns.

Method. Look at each straight part of the path. If the robot is not facing the right way, turn first. Then write F and the number of squares.

  1. Look at the start and the way the robot faces. We start with the robot at the first point.
    Start at (1, 1), facing north.
  2. Do the path one straight part at a time. For each part: turn to face the right way if needed, then go forward the number of squares.
    (1, 1) to (1, 4): forward 3.
    (1, 4) to (4, 4): turn right (now facing east), then forward 3.
    (4, 4) to (4, 2): turn right (now facing south), then forward 2.
  3. Write the program. Join all the instructions in order.
    Program: F3 R F3 R F2
    0123456123456xySE

Check. Run the program from (1, 1): F3 R F3 R F2 ends at (4, 2). ✓

Watch out. Check which way the robot is facing before you choose R or L.

Worked example 10.7.4
The robot starts at S (2, 2) facing north. It goes up to (2, 5) and then turns round and comes back down to E (2, 3). Write the program.
01234123456xySE

Key words. A program is a list of instructions. Forward means go straight ahead. A turn left or right is a quarter turn (a right angle) unless it says half turn. A half turn is two quarter turns.

Method. Look at each straight part of the path. If the robot is not facing the right way, turn first. Then write F and the number of squares.

  1. Look at the start and the way the robot faces. We start with the robot at the first point.
    Start at (2, 2), facing north.
  2. Do the path one straight part at a time. For each part: turn to face the right way if needed, then go forward the number of squares.
    (2, 2) to (2, 5): forward 3.
    (2, 5) to (2, 3): turn right twice, a half turn (now facing south), then forward 2.
  3. Write the program. Join all the instructions in order.
    Program: F3 R R F2
    01234123456xySE

Check. Run the program from (2, 2): F3 R R F2 ends at (2, 3). ✓

Watch out. Check which way the robot is facing before you choose R or L.

Worked example 10.7.5
A pirate map says: “Start at (2, 2). Go 3 steps east, then 4 steps north, then 2 steps west.” Where is the treasure?

Key words. A program is a list of instructions. Forward means go straight ahead. A turn left or right is a quarter turn (a right angle) unless it says half turn. A half turn is two quarter turns.

Method. Follow the directions one at a time. East and west change the x-coordinate. North and south change the y-coordinate.

  1. Write the start point. The map starts here.
    Start at (2, 2).
  2. Follow each direction. East makes x bigger. West makes x smaller. North makes y bigger. South makes y smaller.
    3 east: (2, 2) → (5, 2) (x gets bigger)
    4 north: (5, 2) → (5, 6) (y gets bigger)
    2 west: (5, 6) → (3, 6) (x gets smaller)
  3. Write where the treasure is. The last point is the place the map shows.
    The treasure is at (3, 6).
    01234561234567xystartX

Check. Count the squares on the grid from (2, 2): you arrive at (3, 6). ✓

Watch out. North is up the grid, so going north makes the y-coordinate bigger.

Worked example 10.7.6
The old tree is at (3, 2). The treasure is 4 right and 3 up from the old tree. What are the coordinates of the treasure?

Key words. A program is a list of instructions. Forward means go straight ahead. A turn left or right is a quarter turn (a right angle) unless it says half turn. A half turn is two quarter turns.

Method. “4 right and 3 up” is a translation. Do it to the old tree’s coordinates.

  1. Write the old tree’s coordinates. Along first, then up.
    Old tree = (3, 2)
  2. Move 4 right. Right adds to x.
    x: 3 + 4 = 7
  3. Move 3 up. Up adds to y.
    y: 2 + 3 = 5
  4. Write the treasure.
    The treasure is at (7, 5).
    012345678123456xyTT′

Check. From (3, 2) count 4 right and 3 up: (7, 5). ✓

Watch out. Right and left change x. Up and down change y.

Worked example 10.7.7
What is the shortest route along the grid lines from A (1, 2) to B (6, 5)? Write the number of squares.

Key words. A program is a list of instructions. Forward means go straight ahead. A turn left or right is a quarter turn (a right angle) unless it says half turn. A half turn is two quarter turns.

Method. Along the grid lines you must go across and then up or down. Add the two distances.

  1. Find how far across. Compare the x-coordinates.
    x: 1 to 6 is 5 squares.
  2. Find how far up or down. Compare the y-coordinates.
    y: 2 to 5 is 3 squares.
  3. Add them. Moving along the grid lines, you go across and then up or down.
    5 + 3 = 8 squares
    01234567123456xyAB

Check. Another route (up first, then across) also has 3 + 5 = 8 squares. ✓

Watch out. Do not count the lines you start on twice. Count the squares between the points.

Watch out

Left and right belong to the robot. If the robot is facing south, turning left makes it face east, not west. Also, do not count the start square as a step: F3 moves the robot 3 squares from where it is. And remember each turn is only a quarter turn.

Exercise 10G  Robots, routes and treasure maps

Non-calculator
1
FA robot follows each program. Where does it finish, and which way is it facing?
(a)Start at (1, 1), facing north. Program: F3 R F4
(b)Start at (2, 5), facing east. Program: F3 R F4 L F1
(c)Start at (6, 6), facing south. Program: F2 R F3 R F1
2
FA robot faces the way shown. It follows the turns. Which way is it facing at the end?
(a)Facing north: R R L
(b)Facing east: L L L
(c)Facing south: R L R R
3
FThe robot starts at S (1, 1) facing north and goes along the path to E (5, 5).
0123456123456xySE
(a)Write a program for the path.
(b)How many right angles does the robot turn through?
4
FThe robot starts at S (5, 1) facing north. Write a program that takes it along the path to E (2, 2).
01234567123456xySE
5
PSThe robot starts at S (1, 1) facing north. Which program takes it to the star at (4, 3)?
A: F3 R F2   B: F2 R F3   C: R F2 L F3
012345612345xyS★
6
FRead each treasure map. Where is the treasure?
(a)Start at (1, 1). Go 4 east, then 3 north.
(b)Start at (7, 6). Go 5 west, then 4 south, then 2 east.
7
FThe treasure is 3 right and 2 up from a rock at (3, 4). Where is the treasure?
8
PSHow many squares is the shortest route along the grid lines from the first point to the second?
(a)(1, 2) to (5, 4)
(b)(0, 0) to (6, 3)
(c)(7, 5) to (2, 1)
9
RA robot starts at (1, 1) facing north. Its program is F2 R F3. Leo says it finishes at (3, 4). Is he right? Explain.
10
RWrite always, sometimes or never for each sentence.
(a)A robot turns right four times. It faces the way it started.
(b)A robot facing north turns right a quarter turn. It now faces west.
(c)When a robot follows F4, its y-coordinate changes.
11
PSA robot starts at (2, 2) facing north. It follows this program: F3 R F3 R F3 R F3. Where does it finish, and which way is it facing? What shape is the path it makes?
12
RA robot starts at (2, 2) facing north. It must reach (6, 5). Write a program with only 3 instructions that does this.

Websink Prep UK is an independent site. It is not affiliated with, endorsed by or sponsored by AQA, Pearson Edexcel, OCR, WJEC, Eduqas, CCEA, SQA, GL Assessment, CEM or the Department for Education. All exam board names and trademarks belong to their owners. Past papers are linked from the exam boards' own websites and are not hosted here.

About Websink Prep UK · Find a tutor · Privacy · Terms · Cookie settings