how to make a life in little crab scenarios? and how to make if crab eat 3 worms add 1 lobster.
PLEASE THE CODE, HELP ME. thanks


public int WormsEaten = 0;
WormsEaten++;
if(WormsEaten>3) { WormsEaten=-3; Lobster lob = new Lobster(); getWorld().addObject(lob,Put in X and ,Y postion) }