Robby Project 16


Robby now has nine abilities:

turnLeft()

turnRight()

move()

pickFruit()

dropFruit()

hasFruitLeft()   

alreadyFruitHere()  

moveSpaces(numSpaces)

pickAllFruit()

Project 16We want to implement a function called dropAlllFruit().  The method should give instructions for Robby to drop all his fruit at his current location.

function dropAllFruit()

{

    //Your code will go here

}

Write your code below that will appropriately implement the function.

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