You are the predator of a reef. Catch as many small fish as you can in 90 seconds. A fish in a school is hard to catch, because the fish near it confuse you. Split a school, and catch the fish that stay alone.
Use the arrow keys or W, A, S and D to swim. Hold Shift for a burst: you swim fast while you have stamina. With no burst, the stamina comes back.
No fish knows how to protect the others. Each fish only stays near its neighbors. But when you touch a fish, the fish near it confuse you: with 8 fish near it, you catch it only 1 time in 10. The protection comes from the neighbors.
A fish that sees you moves away from where you will be, with the rule evade of the library. A fish that is alone has no neighbors to hide it.
Each second, boids:flocks/2 gives the schools of the reef. A school of 3 fish or fewer swims to the nearest larger school.
The predator is a gen_boid process. Its force is a rule of its own: a function that reads your keys. When it catches a fish, it sends a message to the process of that fish, which stops.