hts.StevenWood.com

[ Last Page ]

Karel 17a: SnoopyBot & CharlieBot


SnoopyBot


CharlieBot
 
Required: Program the storyboard for SnoopyBot and CharlieBot and submit these items for grading.

Please note the following:

  • Snoopy is a child of Robot
  • I will test your code with your doghouse AND with a doghouse of my own design
    • Make your house 8 x 4 inside.
    • My doghouse may have different dimensions. Here are samples of my doghouse: 1, 2, 3
    • My house may be in a different location than your tester. You must use variables (remember TaxiBot) to keep track of locations.
  • I will place your Snoopy several spaces from the right side of the doghouse IN the box of decorations. Note that Snoopy could be facing in any direction. (It must work if it is facing north, or south, or east, or west.)
  • I will then call the decorateDogHouse() method. This method should call any other methods that are needed to complete the decorating task.
  • Make your own icon for Snoopy. Here are some tips. You can also create icons for the decorations if you wish.
  • The "box of decorations" will need exactly 14 decorations and 8 flashers to work with your doghouse. Don't add any extras to the box. I will add the required number of items for MY doghouse. Here is a tip to get Snoopy to pick up your special decorations.
  • Your code must make use of the looping command (while) and selection command (if) for your code to succeed!!

This is the mark sheet for this assignment.

Click to see the storyboard for SnoopyBot which extends Robot.

Click to see the storyboard for CharlieBot which extends Robot.

You must submit:
  1. a City text file containing the doghouse you have used to test your work
  2. your SnoopyBot.java file
  3. any other JAVA files needed to make your assignment run!
  4. your tester program - if you made one...

 

 
 

 

Click to see the storyboard for SnoopyBot which extends Robot.
Click to see the storyboard for CharlieBot which extends Robot.
 
[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+