Overview

The Zombies model is a predator-prey type model that illustrates the use of a continous space for movement and a discrete grid for neighborhood searches. In the Zombies model, human agents are pursued by zombie agents, and once caught become zombies themselves. Each timestep, the following occurs:

  1. All the Zombies:

    1. Query their immediate neighborhood to determine the adjacent grid location with the most number of Humans

    2. Move towards that location, assuming any Humans are found

    3. Infect the Humans at that location, also assuming any Humans are found

  2. All the Humans:

    1. Become a Zombie, after being infected for more than 9 timesteps, else

    2. Query their immediate neighborhood to determine the adjacent grid location with the fewest number of Zombies

    3. Move to that location at twice the speed of a Zombie.

See Tutorial 3 in the Repast4Py User’s Guide for a complete explanation of the Zombies model.