Strategies take turns choosing to cooperate or betray. Each pair plays many rounds, everyone meets everyone, and the bars show average points per round. Then the population evolves: strategies that score well grow, the rest shrink.
Nice strategies win: Tit for tat scores 2.53 per round It never betrays first. After 60 generations of copying the winners, nice players hold 100 % of the population (from 63 %). Axelrod found the same in 1980.
Challenge: make always defect win the tournament Try fewer rounds (a single round always favours betrayal), or more always-cooperate players to exploit.
Population after 60 generations: Generous tit for tat 25 % Each generation, strategies grow in proportion to the points they earn against the current population (replicator dynamics).
Payoffs: temptation 5, reward 3, punishment 1, sucker 0 Valid: T > R > P > S and 2R > T + S. Betraying a cooperator pays most, mutual cooperation beats mutual betrayal.
0 % of moves are mistakes No mistakes: every chosen move is played. Try 5 to 10 % to see forgiveness matter.
Press Only 3 rounds: with no future, betrayal wins. Press Mistakes happen: the forgiving strategies pull ahead of strict copiers. Set every strategy to zero except tit for tat and always defect, then raise tit for tat from 1 to 5. Raise T until betrayal pays so much that the nice players lose. Iterated Prisoner's Dilemma after Axelrod, The Evolution of Cooperation (1984). Each pair plays the chosen number of rounds with payoffs T (temptation), R (reward), P (punishment), S (sucker), which must satisfy T > R > P > S and 2R > T + S. Eight classic strategies play a round robin, each against every other player once and against its own kind. Noise flips a chosen move with the given probability (Molander 1985; Nowak and Sigmund 1993 for Pavlov and generous tit for tat). Evolution uses discrete replicator dynamics: share x_i grows by the factor f_i / mean fitness, where f_i is the average payoff per round against the current population. Simplified: a strategy plays one seeded game against each other strategy, then those averages are reused for all players, so within-strategy variation is not simulated. Random draws use a seeded Mulberry32 generator. Runs on your device.