1) The period begins.

2) Expected average payouts (gc and gd) are computed for each type based on the number of each type and model parameters. Reproductive probabilities (rc and rd) are also computed.

3) A new agent is born. The probability this agent is a type C agent is rc. The probability they are a type D agent is 1 − rc.

4) One of the agents is randomly selected to die.

5) The period ends. Repeat at 1 above.