The Iterated Prisoners’ Dilemma

The prisoners’ dilemma is a classic Game Theory problem that had an implementation from Robert Axelrod and David Hamilton intended to discuss the evolution of cooperation.

Here we implement a simple version of the IPD game

The model is executed using a .sh file ipd.sh that runs the model and the R markdown file ipd.rmd that generates the report with the simulation results that can be seen in this html file as a sample of a typical run of the simulation

To execute the model go to the IPD Model folder (examples/ipd_model) Open a bash console and write:

$ ./ipd.sh

The results will be show in a browser (look for the file ipd.html in the folder ‘results’)