College for Kids - Python: Lab 5

Today we will be working with Finch Robots. First I want you to download the needed files for the Finches to work by going to this link. Then to get a little bit of a feel for the robots run this example program.

Next we are going to write a program to make our robots dance. To start I want you to right code that performs the following code:

 
                    Move in a square pattern, full speed ahead, for 1 second each side.
                    Move in a square pattern, full speed reverse, for .5 seconds each side.
                    Repeat forever....
                
Now I dont want to see the square pattern repeated. I want a method that moves your finch in a square pattern. Maybe even one for a forwards square and one for a backwards square. Think you can figure out how to make one method and change whether you want it to be forward or backwards (hint: If statements). Try it out!

Now once you finish that you can work on the obstacle course! For these use the Finches sensors to tell if it is about to run into a plank. I will give each team 3 planks in order to test their code and if at the end we have enough time we will have a little competition!