Robby Project 15
Robby now has eight abilities:
turnLeft()
turnRight()
move()
pickFruit()
dropFruit()
hasFruitLeft()
alreadyFruitHere()
moveSpaces(numSpaces)
Project 15: We want to implement a function called pickAllFruit(). The method should give instructions for Robby to pick up all the fruit at his current location.
function pickAllFruit()
{
//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.