| 1. |
Create a CompassBot that will contain four
methods called faceNorth(), faceSouth(), faceEast(), faceWest(). These
methods will face the robot in the specified direction no matter which
direction it is initially facing. CompassBot is a child of Robot.
Examine the Robot documentation
to find out how to determine which direction the robot is currently facing.
Test your robot. |
 |