Game Rules:
- Fish (Red):
- Movement: Move to an adjacent empty cell each turn.
- Interaction: When a fish meets another fish, it breeds into 1 more fish.
- Shark (Blue):
- Movement: Move to an adjacent empty cell each turn.
- Interaction: When a shark meets a fish, the fish disappears. When a shark meets another shark, it breeds into 2 more sharks.
General Rules:
- Grid: The simulation takes place on a 20x20 grid.
- Wraparound: The grid wraps around, so creatures can move from one edge to the opposite edge.
Explanation:
The simulation runs on a 20x20 grid, with fishes and sharks moving and interacting according to specific rules. The fishes move randomly and breed when they meet another fish. The sharks move randomly and eat fishes they encounter. Sharks breed when they meet another shark.