A set of agents located in a lattice play the Prisoners Dilemma with their neighbors during a given number of iterations. At each iteration the agents choose to cooperate or to defect depending on the strategy chosen by the most successful player of their environment.
The model is a bidimensional cellular automata with a transition rule that depends on the accumulated payoffs of the agents when they play a Prisoners Dilemma with their neighbors.
The dynamics of the game generates in many cases complex chaotic patterns.
Enrique M. Quilis (2022). Geometric Prisoners Dilemma (https://www.mathworks.com/matlabcentral/fileexchange/54484-geometric-prisoners-dilemma), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!