hts.StevenWood.com

Karel 16

Home ] Up ] [ Karel 16 ] CheckList ] Rubric ][ Last Page ]

Karel 16: WhileBot

Complete the following in class or for homework. Do NOT hand in your work unless other instructions were given.

1. Add to the capabilities of WhileBot so that it
  1. pick up every Thing that is in a pile
  2. put down every Thing that is in it's backpack
  3. can move back to avenue 0 (assume the way is clear)
  4. can move back to street 0 (assume the way is clear)
2. More difficult(??) Do these if you get #1 done in a reasonable amount of time. You may have to test for a couple of things in the method. If you need to use the idea of more than 1 condition to control a while loop (or if statement) you can look at this page.
  1. Move towards avenue 0 but if a wall is in your way you can go around it. Assume that there is only one wall in the way.
  2. Move towards street 0 but if a wall is in your way you can go around it. Assume that there is only one wall in the way.

 

 
Home ] Up ] [ Karel 16 ] CheckList ] Rubric ][Last Page]
All material on this site is copyright © 1997- by Steven Wood or as credited. All right reserved. Use of this site indicates you agreement with the  terms of use.
Send comments or questions to about this page.
Every attempt has been made to credit work under copyright. If there are any claims that copyright has been missed please contact the .
+SDG+