I am trying to program my scenario so that after every other Crab my Lobster encounters, it eats it. So far, I have this and need help moving on.
"
public void lookForCrab()
{
if ( isTouching(Crab.class) )
{
removeTouching(Crab.class);
Greenfoot.playSound("au.wav");
Greenfoot.stop();
}
}
"