Get the app

Prisoner's dilemma simulator

The prisoner's dilemma is a game where each player scores more by betraying, whatever the other does, yet both score less when both betray. Over many rounds, strategies that cooperate first but punish betrayal tend to come out ahead, and mistakes can change which one wins.

Points per round: yours first, theirs second
They cooperateThey betray
You cooperate3, 30, 5
You betray5, 01, 1

One match

vs
Tit for tat199
Always defect204

Cooperates BetraysRounds 1–20 of 200; totals count every round

Tournament

Predict first

With the standard points (5, 3, 1, 0) and no mistakes, 5 strategies each play every other strategy, and a copy of themselves, for 200 rounds. Which one finishes with the most points?

Worked example

Tit for tat plays 10 rounds against always defect, then 10 rounds against a copy of itself. Scores per round: 5 for betraying a cooperator, 3 each for cooperating, 1 each for both betraying, 0 for being betrayed.

  1. Round 1: tit for tat cooperates and is betrayed: 0 to 5.
  2. Rounds 2 to 10: it copies the betrayal, and both score 1 a round.
  3. Final score: tit for tat 9, always defect 14.
  4. Against its own copy, both cooperate every round: 30 each.

Tit for tat loses to always defect, 9 to 14, but its friendly match earns it 30: more than always defect took from its win.

Learn why Game Theory · Roadmap

Keep learning in short lessons

Interactive lessons, a few minutes each, in the Mochivia app for iPhone.

Download on the App Store
Explore with AI:ChatGPTClaudePerplexity