0% found this document useful (0 votes)
266 views13 pages

Lets Code

Rusty the Robot is teaching students about coding by having them write code to navigate him through the classroom to reach his desk, which is blocked by other robots. Students must write code using the commands "Forward", "Backward", "Turn Left", and "Turn Right" and debug any errors when Rusty encounters other robots in his path. Working in pairs, students will continue writing and debugging code to successfully guide Rusty back to his desk.

Uploaded by

Rana Bakri
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
266 views13 pages

Lets Code

Rusty the Robot is teaching students about coding by having them write code to navigate him through the classroom to reach his desk, which is blocked by other robots. Students must write code using the commands "Forward", "Backward", "Turn Left", and "Turn Right" and debug any errors when Rusty encounters other robots in his path. Working in pairs, students will continue writing and debugging code to successfully guide Rusty back to his desk.

Uploaded by

Rana Bakri
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 13

Hello, my name is Rusty the Robot.

I’m your new classmate for the day.

Today, I am going to teach you how to code.


What Is Coding?
For a computer to work, it needs a special set of instructions.
The special instructions are called codes.
Coding Language
The only commands I understand are:

Forwards Backwards Turn Left Turn Right


Coding Challenge
First, I need some help getting back to my desk.
Can you create a code for me?

Remember, I only know the commands:


• Forwards
• Backwards
• Turn Left
• Turn Right
X

Whoops! My robot
friends are now in the
way. You’ll need to
change the code.
X

Oh no! More robot


classmates are in the
way! You’ll need to
change the code.
X

A code has been left


for me to follow.
Is it correct?

Forward,
Forward,
Turn Left,
Forward,
Forward,
Turn Right, Forward,
X
Forward,
Forward, Yes! I made it to
Forward my desk.
Debugging
If there’s a problem with a code, you have to go back through the
steps and debug it.
Debugging means to fix the fault in the code and remove the ‘bug’.
X

Where’s the bug in the


programme?

Forward, Forward, Turn


Left, Forward,
Forward, Turn Right,
Forward, Forward,
Forward, Forward

Forward, Forward, Turn Left, Forward,


Forward, Turn Right, Forward, Forward,
Forward, Forward

The bug is in the 4th code.


My robot classmate is in the way!
X

Turn Left, Forward,


Forward, Forward,
Turn Right, Forward,
Forward, Forward

Where’s the bug in the


programme?

Turn Left, Forward,


Forward, Forward,
Turn Right, Forward,
Forward, Forward

The bug is in the 7th code.


Another robot classmate is
in the way!
X

Working in pairs,
create a code to help
me reach my desk.
Remember to avoid
any robots and debug
any errors.

You might also like