Two suspects, held in separate cells, each offered the same deal: betray your partner and you walk while they take the fall. The maddening twist β whatever the other does, betraying always looks better for you, so both rational players defect and both end up worse than if they'd simply cooperated. It's the cleanest model we have for why selfishness can sink everyone. Scroll down to play a round, then watch how cooperation can claw its way back when the game is played again and again.
Pick the opponent's strategy, then choose Cooperate or Defect. The grid shows your payoff (first number, green) and theirs (second, blue) β higher is better. Notice that whatever the opponent does, Defect scores you more. That dominance is why mutual defection is the Nash equilibrium β yet mutual cooperation would have left you both richer.
Now the prisoners meet over and over. Six classic strategies play a full round-robin β everyone vs everyone (and a copy of themselves) β for the chosen number of rounds, and scores pile up. Watch the bars race, then settle into a ranking. Tit-for-Tat β nice (never defects first), retaliatory, and forgiving β usually finishes at or near the top: cooperation emerges among self-interested players once the game repeats.
The one-shot game and the repeated game point in opposite directions: