Deep Reef

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.

Connecting
Small fish You, the predator Rocks

Swim to a fish and touch it. A fish with many fish near it is hard to catch.

Stamina

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.

A school that protects each fish

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.

The rule evade

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.

The schools are flocks

Each second, boids:flocks/2 gives the schools of the reef. A school of 3 fish or fewer swims to the nearest larger school.

You are a boid

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.

Read the code of the game.