Prey Vs Predator

Published 2024-08-06

All creatures can only move in one of four directions: up, down, left, right.
Moving consumes an energy point.

If a prey runs out of energy, it can't move that turn.
It may choose to not move even with energy.
If any of these happen, then it gets 1 energy point.

Predators also can run out of energy. It they do, they die. To get energy, they need to eat prey. If they do, they get full energy and 2 more predators appear.

The objective of prey is to outlive the predator.
The objective of predator is to kill all prey (yes, I know that they die after that. Just ignore that for now).

If a prey is next to a predator (not diagonally), has energy and wishes to move, it will move away from the predator.
If a predator is next to a prey (not diagonally) and wishes to move, it will eat the prey, but if it had 1 energy before eating, the prey survives and the predator dies.

If none of the above are met, the creatures will move around randomly.

Pretty much everything is customisable, although it might run slower.

If you wish (or made a huge map), you can move the cam with the arrow keys.

Added prey splitting. They split every set amount of turns (configurable) and have a random chance of splitting (also configurable).