lesson

Run it in your head

Read with an adult. You can say, point, draw or write your answer.

1 · Learn

Before running a program, predict what each instruction will do. Keep track of where the robot is and which way it faces.

In our model, forward moves one square in the facing direction. A right turn changes the facing direction by a quarter turn but does not move the robot to another square.

Start: facing rightForwardRight turnForward
Key words and supplied examples.

2 · Worked example

Starting facing right, the first forward moves right one square. A right turn faces down. The next forward moves down one square.

3 · Your turn

Start facing the top of the page. Turn right, then move forward one square. Which way do you move?

Check your answer

To the right of the page. The turn changed the facing direction before the move.

4 · Apply your learning

Draw the route on a small paper grid, then follow it with a counter to check your prediction.

Adult guidance and safety

Work with an adult in an approved offline or school-managed tool. Use pretend information, never real passwords or personal details. Paper activities model ideas but must be followed by suitable hands-on device practice.

Open your writing and drawing pad

Write, draw or show your working. Use a mouse, pen or finger. This pad is not a submitted answer.

Not saved to your account. Download your drawing as PNG and your typed notes as TXT before leaving or refreshing. They are separate files. Do not enter private information.

Open a picture saved on this device to draw on it again. Opening replaces the drawing, but Undo can restore it. PNG only, up to 4 MB and 4096 × 4096 pixels. The picture stays in this browser; it is not uploaded. Paper lines in a saved picture become part of that picture.

Drawing is unavailable. Use the typed working area below.

Your pad is empty.

Open a UTF-8 TXT file from this device, up to 40 KB and 10,000 characters. It stays in this browser. Opening can be undone until you type again. Downloads keep a new copy; they do not change the file you opened.

Typed notes are not submitted answers.

Practice this lesson

Lesson resources

Browse the available practice activities and worksheets for this lesson.

Open course resources

Your progress

Ready to continue?