Robby Project 14


Robby now has eight abilities:

turnLeft()

turnRight()

move()

pickFruit()

dropFruit()

hasFruitLeft()   

alreadyFruitHere()  

moveSpaces(numSpaces)

moves Robby 'numSpaces' in the direction he is facing

Project 14:  Robby begins at the origin (0, 0) facing East with 4 pieces of fruit.  Provide the instructions for Robby to drop one fruit piece at the following locations:

(0, 10), (10, 0), (-10, 0) and (0, -10) as shown below.

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