Terrapin Resources

Using Repeat

When you are using the Tuff-Bot Emulator, you can repeat a set of instructions for Tuff-Bot to follow.

To program a Repeat command in the emulator, choose the third level, called ‘Repeat loops’, at the top.

Click the Repeat button at the lower left.

It will show 2, then if you click it again, it will show 3, and so on. Click the button for the number of times to repeat. This picture shows Repeat 4.

Then click the move and turn buttons for the sequence you want to repeat. End the loop by clicking the button at the lower right of the keypad. It shows the repeat icon with a red x through it.

Your final code will look like this, shown at the bottom of the keypad:

What design do you think this code will produce?