I'm trying to implement a model of predator-prey. It is agent-based model. Every few milliseconds is a new move. On the field there are two types of creatures: predator and prey. The behavior of each of them is given by the following rules:
Prey:
- Just moved to an unoccupied cell
- Every few steps creates offspring to his old cell
- Life expectancy is limited by the number of moves
Predator:
- Predator moves to the cell with prey. If such cells are not, in any free neighboring cell
- Same
- Same
I have a problem with the choice of prey move.
For example, I have preys in cells 5 and 9. Each of them can move to cell 6. How can I resolve this conflict? Thanks