Ann111111
Sep 12, 2013, 12:49 AM
A method called dropItems() taking a Robot and an integer. The robot should (try
to) drop that number of items.
My version doesn't work unfortunately. Here is it:
int dropBeepers(String input, int createRobot, int count) {
count =0;
while(isRobotCarryingItems()) {
dropItemFromRobot();
}
count++;
return(count);
}
}
to) drop that number of items.
My version doesn't work unfortunately. Here is it:
int dropBeepers(String input, int createRobot, int count) {
count =0;
while(isRobotCarryingItems()) {
dropItemFromRobot();
}
count++;
return(count);
}
}