Monkeys and fruit
These monkeys have the following behaviours:
  • If there are less than 10 monkeys nearby, run back to the center of the group.
  • If there are enough monkeys around, walk in a random direction looking for food.
  • If you find 6 pieces of fruit, sit down and eat at a set pace. (e.g. if you eat 2 pieces of fruit per timestep, you eat for 3 timesteps). When you're done eating, go back to the other behaviours.

    You can use the mouse to nudge the monkeys a little.