Being nice can pay, if you meet again.
In a single round, defecting always pays. When the same two meet again, being nice can be the selfish choice, under conditions you can change.
One round, defecting pays
Being kind to a stranger you will never see again costs you something and buys you nothing. The prisoner’s dilemma puts points on that thought. You and the stranger each choose, at the same moment, to cooperate or defect. If you both cooperate, you get 3 points each. If you both defect, you get 1 each. If one of you defects on a cooperator, the defector gets 5 and the cooperator gets 0.
Look at it from your side. If the stranger cooperates, defecting gets you 5 instead of 3. If the stranger defects, it gets you 1 instead of 0. So defect, whatever they do. They can work that out too, so you both defect and both get 1, with 3 each sitting right there. That is the dilemma.
The points 5, 3, 1 and 0 are only the usual ones. What makes the dilemma is their order, so the table below is yours to edit. The chance of another round starts at 0, which means one round and done. Drag it up. From here on, the partner copies whatever you did last round.
At 0%, always defecting is as good as any plan. By 67% it is the worst of the three.
Meeting again prices defection
Meeting again changes what a defection costs. The partner in the figure remembers, and copies what you did last round.
Take the usual points. Defect for good and you get 5 once, then the partner copies you and every round after pays 1. Cooperate for good and every round pays 3.
With a fixed number of rounds, defecting for good only wins if there is one round. At two rounds the plans tie on 6. From three on, cooperating comes out ahead.
Real meetings rarely announce a last round, so say that after each round there is a chance of another. Cooperating for good beats defecting for good once passes . Taking turns, defecting and then cooperating, beats both for a while, which is why the chart has a third line. Cooperating is the best reply to a copier only when this holds:
With the usual points, that is a 2 in 3 chance of another round, three rounds on average.
Axelrod called this the shadow of the future. It is the later rounds, and what an early defection costs you in them.
The threshold depends on the points. In the figure, drop the temptation, the 5 you get for defecting on a cooperator, to 2 and the dilemma is gone, because cooperating wins at every . Raise it to 9 and taking turns beats steady cooperation at every , so the threshold reads never.
Two players, one slip
Anyone who has watched a quarrel outlive its cause knows how this goes. Each side only answers what the other just did, and neither can find the way out.
The same thing can happen in the game. Take four strategies. Tit for tat cooperates first, then copies the other side’s last move. Generous tit for tat does the same but forgives one defection in three. Pavlov cooperates after a round in which both made the same move, and defects otherwise. Grim trigger defects for good after one defection.
Now add mistakes. Each move has a small chance of flipping against what the player meant, and both sides see the flipped move. They cannot tell a slip from a choice.
Start with tit for tat against itself. One slip and each copies the other’s last defection, so they take turns defecting, and only another mistake can stop it. Over 200 rounds with 2% mistakes, two tit for tat players expect 471 of 600 points. Two generous players expect 588, and two Pavlovs 581. Two grim triggers never forgive, and expect 262.
Generous tit for tat ends a feud in three rounds on average. Pavlov ends it in two.
Axelrod's tournaments and who won
So which strategy is best? In 1980 Robert Axelrod put that question to people who study games for a living. He invited game theorists to send in a program for a repeated prisoner’s dilemma, and 14 came in. He added one that flips a coin. Every program met every other, and a copy of itself, for 200 rounds, with the usual 5, 3, 1 and 0 points.
The winner was the simplest entry, tit for tat, sent by Anatol Rapoport. It averaged 504 points a game. Steady cooperation on both sides would have earned 600. Axelrod published the results and ran a second tournament, and 62 entries came in. Tit for tat won again. This time the length was random, with a 0.00346 chance of stopping after each move, so no program could know the last round.
Axelrod named four things the winner had going for it. It is nice, so it never defects first. It is retaliatory, so a defection gets answered. It is forgiving, so it cooperates again once the other side does. And it is clear, so the other side can see what it does. The eight highest entries in the first tournament were the eight nice ones.
Oddly, tit for tat never beat a partner in a match. Without mistakes it cannot, because it never defects first and only copies. It won anyway, by what it brought out in the others.
A crowd decides
A strategy’s score depends on who else is in the room. The figure plays a round robin, where everyone meets everyone, with seven simple strategies. They are the four above plus always cooperate, always defect and a coin flipper. Then it lets them multiply.
Look at the always defect row. With no mistakes it wins all six of its matches and still finishes sixth of seven. Tit for tat wins none and finishes second. Against tit for tat and grim trigger, always defect earns about 1 a round, where those two earn 3 from each other. Winning matches and winning a tournament turn out to be different games.
Now let the strategies multiply. Each share grows in proportion to its average score, which is the rule Axelrod used in his ecological tournament too. Start with mostly easy prey, always cooperate and the coin flipper, plus a few defectors and a few tit for tats. Defectors rise from 10% to 74% by generation 14, because prey is everywhere. Then the prey is gone. By generation 24 defectors are under 1%, and tit for tat holds the field.
Make matches one round long and defectors take over. Allow 2% mistakes with an equal start, and tit for tat rises and fades while generous tit for tat passes 95% by generation 150. Who meets whom matters too. One tit for tat among 40 defectors only takes over if matches run longer than 22 rounds. In 10 round matches it takes over if one meeting in ten is with its own kind. Axelrod and Hamilton (1981) showed that clusters like this can start cooperation among defectors.
What it does not say
It would be easy to leave with the wrong lesson, so here are the limits.
Nice does not always win. Tit for tat won two tournaments against the entries it happened to meet. When Rapoport, Seale and Colman (2015) re-ran the first as two-stage contests, tit for tat won 11% of the possible ways to split the 15 entries into three groups of five. The result depends on the format, the scoring and the points.
None of this shows that people are kind. It shows when a selfish player would choose to be.
A known last round breaks the argument. Defection unravels backward from the end. Nobody cooperates in the last round, so nobody has a reason to in the one before it, and so on back to the first. In experiments people behave much as in games of unknown length, except in the last few rounds.
And tit for tat is not the best strategy either. Mistakes make it feud, and generous tit for tat and Pavlov do better there.
A neighbouring question is how much a later reward is worth now. See the note on discounting.
Findings
The plain results.
- Against a partner who copies your last move, always cooperating beats always defecting once the chance of another round passes 50%, and is the best reply from 67%, with the usual points.
- With 2% mistakes over 200 rounds, two tit for tat players expect 471 of 600 points. Two generous players expect 588 and two Pavlovs 581.
- With 200 rounds and no mistakes, always defect won all six of its matches and finished sixth of seven. Tit for tat won none and finished second.
Sources
- Axelrod, R. (1980). Effective choice in the prisoner’s dilemma. Journal of Conflict Resolution, 24(1), 3 to 25.
- Axelrod, R. (1980). More effective choice in the prisoner’s dilemma. Journal of Conflict Resolution, 24(3), 379 to 403.
- Axelrod, R. (1984). The Evolution of Cooperation. Basic Books. The four properties and the shadow of the future.
- Axelrod, R., and Hamilton, W. D. (1981). The evolution of cooperation. Science, 211(4489), 1390 to 1396.
- Rapoport, A., Seale, D. A., and Colman, A. M. (2015). Is tit-for-tat the answer? On the conclusions drawn from Axelrod’s tournaments. PLoS ONE, 10(7), e0134128.
- Kuhn, S. (2025 revision). Prisoner’s dilemma. Stanford Encyclopedia of Philosophy.
- Nowak, M. A., and Sigmund, K. (1993). A strategy of win-stay, lose-shift that outperforms tit-for-tat in the prisoner’s dilemma game. Nature, 364, 56 to 58.
- Nowak, M. A., and Sigmund, K. (1992). Tit for tat in heterogeneous populations. Nature, 355, 250 to 253. The generous strategy.
- Molander, P. (1985). The optimal level of generosity in a selfish, uncertain environment. Journal of Conflict Resolution, 29(4). Generosity as given in the Stanford Encyclopedia entry above.
- Press, W. H., and Dyson, F. J. (2012). Iterated prisoner’s dilemma contains strategies that dominate any evolutionary opponent. PNAS, 109(26).
- Dal Bó, P. (2005). Cooperation under the shadow of the future: experimental evidence from infinitely repeated games. American Economic Review, 95(5), 1591 to 1604.