Step 4

Completing the challenge


Now that we have a function to help us, all we need to do is turn our robot before we call/use it.

Add the code as shown to have the robot knock down all the structures in the path we laid out before.

Check out how useful functions are! Because of them, our code looks pretty simple and easy to understand, imagine doing this without a function!

When you are done, a good way to challenge yourself is to come up with a different solution. Try seeing if you can do this without using the “DownEye” sensor, it is possible!