Uploaded June 2025 | Updated September 2026, 2 hours ago
Here is the next iteration of our attempt to simulate sharks and minnows interacting. Each sea creature moves by the following two rules. The minnows (green squares) move away from the nearest shark (red diamond). And the sharks move towards nearest minnow.
Once the distance between is within a tolerance, the minnow is eaten and leaves the population (marked by an x).
Pretty simple, but boy, it generated some headaches to get this to function as intended.
Next steps are to account for loss of "elbow space". Both minnows and shark appear to be right on top of each other, which is far from reality.
Here is the next iteration of our attempt to simulate sharks and minnows interacting. Each sea creature moves by the following two rules. The minnows (green squares) move away from the nearest shark (red diamond). And the sharks move towards nearest minnow.
Once the distance between is within a tolerance, the minnow is eaten and leaves the population (marked by an x).
Pretty simple, but boy, it generated some headaches to get this to function as intended.
Next steps are to account for loss of "elbow space". Both minnows and shark appear to be right on top of each other, which is far from reality.










