Robby Project 20
Robby now has ten abilities:
turnLeft()
turnRight()
move()
pickFruit()
dropFruit()
hasFruitLeft()
alreadyFruitHere()
moveSpaces(numSpaces)
pickAllFruit()
dropAllFruit()
Project 20: Robby begins at (0, 0) facing East with a random amount of fruit.
There is a trail of fruit (12 pieces long) as shown in the graph below. The only thing that is known is that there is one piece of fruit at a neighboring location (directly above, directly below, directly to the left, directly to the right) for each step of the trail.
Note: Below is just one example. Your code should work for any trail. If you answer 5 in a row correctly, you can enter your e-mail address.
Note: If your code works for 5 test cases in a row, you can enter your e-mail address.