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.