|
THS
|
Robots /
ChandniUsingButtonsUsing ButtonsThis is just how i went about doing this. You can check out my text file here: http://www.cs.uml.edu/teams-academy/uploads/Robots/ChandniBraitExample.txt To differentiate between the two different codes (which would only different in the color of the egg we are looking for), I used buttons to switch between the two choice pretty easily. I used it for my Braitenberg Code and it worked very effectively. With the way I set it up, we didn't have any issues where it would not have stayed in the loop after a button was pressed. Using an if, it would check once, and using a while would mean the button would have to be held the entire time. So the way I set it up (If loop with a while inside) it works pretty effectively, and requires the least human input. ~Chandni : ) Allison's and Chandni's Super-Secret Egg Hunt Planning Blueprints!! |