Simple python script modelling predator-prey ocean system. Ocean is represented with 2d cell system. Each cell can contain either one of predator, prey, obstacle or be empty.
The script uses the tkinter graphics interface: red cells are predators, green are prey, black are obstacles and blue are empty.
Each time tick all cells are processed:
- Each creature can make a move to a neighbour cell.
- Predator eats prey if they happen to come to one cell.
- If predator stays hungry for some time - he dies.
- After some time each creature produces a child to a neighnour cell.
- If that cell is not empty - the child dies.