Skip to content
TR

Start typing; Enter opens the first result, Esc closes.

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.

Payoff table
CooperateDefect
Cooperate3, 30, 5
Defect5, 01, 1 ★ Nash equilibrium
Rows are your choice, columns your opponent’s. Each cell shows your points first, then theirs. ★ Nash equilibrium

Your progress and settings are kept only in this browser.

What did you learn?

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.

Sources

Games

Last updated:

Cookie preferences

Cookie Policy