Prisoner’s dilemma
Two people choose at the same time without seeing each other: cooperate or defect. If both cooperate, each gets 3 points; if both defect, each gets 1. If one defects and the other cooperates, the defector gets 5 and the other 0. The game lasts several rounds, and you don’t know how many.
| Cooperate | Defect | |
|---|---|---|
| Cooperate | 3, 3 | 0, 5 |
| Defect | 5, 0 | 1, 1 ★ Nash equilibrium |
Your progress and settings are kept only in this browser.
What did you learn?
- In a single round, defecting is a dominant strategy: whatever the other does, defecting earns more. The only Nash equilibrium is mutual defection (1, 1), even though mutual cooperation (3, 3) would leave both better off.
- When the game repeats and nobody knows when it ends, cooperation can survive: a defection today can be punished tomorrow (Friedman 1971; Axelrod 1984).
- Tit for Tat, which won Axelrod’s tournaments, never ends a match with more points than its opponent; it wins overall because it builds and keeps cooperation.
Where does the name come from?
Merrill Flood and Melvin Dresher studied the game experimentally at the RAND Corporation in 1950; the same year mathematician Albert W. Tucker told it as a story about two prisoners in a talk, and the name stuck (Poundstone 1992).
Bots
- Tit for Tat
- Cooperates in the first round, then copies your previous move. Won both of Axelrod’s tournaments.
- The Saint
- Cooperates no matter what. Easy to exploit.
- The Opportunist
- Defects no matter what.
- Grudger
- Cooperates until you defect once, then never forgives (grim trigger).
- Pavlov
- Repeats its move if the last round went well and switches if it went badly; cooperates when you both chose the same (Nowak and Sigmund 1993).
- Coin flip
- Picks at random, fifty-fifty, every round.
- The Patient
- Defects only after you defect twice in a row (Tit for Two Tats). Axelrod calculated it would have won the first tournament had it been entered.
Frequently asked questions
What is the Nash equilibrium of the prisoner’s dilemma?
In a single round, both defect. Neither player can gain by changing their move alone, yet both would gain if they switched to cooperation together.
What is the best strategy in the iterated prisoner’s dilemma?
There is no single best strategy against every opponent; it depends on who else is playing. Tit for Tat won Axelrod’s tournaments; later work found that rules like Pavlov do well where mistakes can happen.
Games
- ChickenSwerve and lose face; neither swerves and you crash. Who blinks first?Play →
- Stag huntHunt the stag together and you both eat well. But if your partner runs after a hare, you go home empty-handed.Play →
- Ultimatum gameYou split the pot; they accept, or you both walk away with nothing.Play →
- Public goods gameIf everyone chips in, everyone wins. But those who don’t still get their share.Play →
- Sealed-bid auctionEveryone writes a bid in an envelope. The highest bid wins, but what the winner pays depends on the rule.Play →
Last updated: