Supplementary material to: Campigotto Nicola (2021), "Pairwise imitation and evolution of the social contract", Journal of Evolutionary Economics, vol. 31, no. 4, pp. 1333-1354.
This Matlab code simulates the evolution of cooperation in a population of agents playing a stag hunt game and updating their behaviour according to two different pairwise imitative rules.