Space bar causes food to appear. "r" causes fish to reset to a random position and a hunger level of 0.
This is the remix from icebirdg34 that we can use as a base for our emergent challenge. Here are some simple rules about fish that should help: (1) Fish like to swim in the same direction as those fish nearest to them. (2) But, if a predator comes, the fish try to do two things: run away and hide inside the school of fish. (3) Fish get hungry over time. When they are hungry, the best chance to find food is to be on the outer edge of the school of fish. (4) Fish don't like to be too far away or too close to each other.