| 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. |