Program the robot

Computers do exactly what you say

Imagine asking a robot to butter a slice of bread. If you only say "butter the bread", it has no idea what to do. You have to explain every step: pick up the knife, open the tub, and so on.

A list of steps like that is called an algorithm. If you write it in a language the computer understands, it is called a program.

Mistakes are part of it

Does your program do something different from what you wanted? Then it has a bug. Real programmers find bugs every day. Looking for mistakes is called debugging.

And do you want to do something many times? Then you use a repeat. It saves a lot of typing!

Your turn: get the robot to the star

Line up some blocks and press Start. Does the robot crash? Then you have a bug. Change your program and try again!

Quiz: question 1 of 4

What is an algorithm?

Quiz: question 2 of 4

What is a bug?

Quiz: question 3 of 4

What do you use a repeat for?

Quiz: question 4 of 4

Your program does something strange. What is the smart thing to do?

Bug hunter