Create a CameleonBot that will change colour based on the location of the robot in the city. The colour is based on the diagram to the right.
CameleonBot is a child of Robot.
Examine the Robot documentation
to find out how to determine the current street and avenue of the robot.
Test your robot by moving your robot around the four areas.
Your robot should start with the proper colour when placed in the city too.
ALSO adjust the robot so that it will NOT move pass street 0, street 10, avenue 0 and avenue 10. |