Math
Prisoner's dilemma tournament
Compare five strategies in a noisy repeated prisoner’s dilemma, inspect cooperation histories and watch population shares evolve from a tournament payoff matrix.

Try this
Compare repeated strategies in the upper history: blue cooperates, pink defects. Lower bars evolve by the replicator equation using a separately sampled round-robin payoff matrix.
Equations used in the module
Equations T > R > P > S; default (T,R,P,S) = (5,3,1,0) fi = Σj Aij xj; mean(f) = Σi xi fi xi′ = xi(fi − mean(f)); Σxi = 1 Tit for tat: cooperate first, then copy opponent’s previous action


