Robby Project 7


Robby now has five abilities:

turnLeft()

move()

turnRight() 

Uses the implementation from project 6 for Robby to turn right.

pickFruit()

Robby picks up a piece of fruit he is standing on if one is at his location.  You receive an error message if you try to pick up fruit that is not there.

dropFruit()

Robby drops one piece of fruit at his current location if he has at least one piece.  You will recieve an error message if you try to drop fruit when Robby doesn't have any.

Project 7:  Look at the graph below.  Implement the instructions for Robby to pick up all the fruit on the graph.

Note: If your code works for 5 test cases in a row, you can enter your e-mail address.