hts.StevenWood.com

Karel 15c

Home ] Up ] Karel 15 ] Karel 15a ] Karel 15b ] [ Karel 15c ] Karel 15d ] Boolean Logic ] CheckList ] Rubric ][ Last Page ]

Karel 15c

Complete the following in class or for homework.

1. SteeplechaseRace:

Make a new class of robot named SteeplechaseRobot. The robot should be able to climb a wall that is one, two, or three blocks high. Make a climbWall() method in the class. (Hint: In the climbWall method, get the robot to the top of any height wall before continuing over and down the wall.)

Make a main method in your class in which the robot runs an eight block long steeplechase. This class should have the robot make the choice to move or climb at each of the 8 corners as the robot travels along the street.

You will need to build a city with walls that will act as hurdles.

 


 
Home ] Up ] Karel 15 ] Karel 15a ] Karel 15b ] [ Karel 15c ] Karel 15d ] Boolean Logic ] 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+