Modelling the predator-prey problem. (Wolf - predator, red, Sheep - prey, green)
The field is a toroid surface represented by rectangle with enclosed edges (both vertical and horizontal)
The behaviour of any creature is a markov process. The probabilities of making move is given four directions (up, dpwn, left or right) depend only on current location of other creatures in the radius of two.
This Qt project was compiled in MinGW compiler for QT.
Qt Creator 4.2.1