Personaramic
Business and Decisions

Prisoner's Dilemma Game: Cooperation vs Defection Strategies

Game of 10 to 14 rounds · ~3 min · No sign-up ·

Before you start

You play against a hidden opponent. Each round, you both choose at the same time: cooperate or defect.

  • · You both cooperate: 3 points each.
  • · You both defect: 1 point each.
  • · One defects and the other cooperates: 5 for the defector, 0 for the cooperator.
  • · You don't know how many rounds there will be.

Your goal is to score as many points as possible, not to beat your opponent.

More about this test

What it is: a prisoner's dilemma game against real strategies from Axelrod's tournaments

Two buttons, cooperate or defect, and an opponent who presses theirs at the same moment you do. If you both cooperate, 3 points each. If you defect on someone who cooperates, you take 5 and they get nothing. If you both defect, 1 point apiece.

Points per round: defecting is tempting, but mutual cooperation adds up to moreOpponent cooperates. Opponent defects. You defect. You cooperate. 3 and 3. Mutual cooperation: best for both together. 0 and 5. You cooperate and the other defects. 5 and 0. You defect on someone who cooperates. 1 and 1. Mutual defection: worst for both together3 and 3Mutual cooperation:best for bothtogether0 and 5You cooperate andthe other defects5 and 0You defect onsomeone whocooperates1 and 1Mutual defection:worst for bothtogetherYou cooperateYou defectOpponent cooperatesOpponent defects
Payoffs from Axelrod’s tournaments (1980), the same ones this game uses. Your points first, then your opponent’s.

Whatever the other player does, defecting earns you more points in that round. The catch is that the other player reasons the same way, and two defectors end up with 1 point when they could have had 3. That is the prisoner's dilemma, formulated in 1950 by Merrill Flood and Melvin Dresher at the RAND Corporation; Albert Tucker later gave it the story of the two prisoners that names it.

Things change when the game is repeated with the same person, as happens with a neighbor, a business partner or a supplier. Which strategy works best in the long run? In the late 1970s the political scientist Robert Axelrod put that question to game theorists from psychology, economics, political science, sociology and mathematics, and pitted their programs against each other in a computer tournament.

Fourteen strategies came in, plus one that played at random. Each was matched against all the others in games of 200 rounds. The simplest of them all won: Anatol Rapoport's Tit for Tat, which cooperates on the first move and then repeats whatever the opponent did last.

This game puts you in the place of those programs: you play a few rounds against a hidden opponent and, at the end, you see which strategy your way of playing followed and where it would place in a tournament like that one.

How it was built: 10 to 14 rounds against an opponent who defects, plus a simulated tournament

The rules are those of the original tournaments: Axelrod's payoffs (3, 1, 5 and 0) and a length you don't know, between 10 and 14 rounds. If you knew which round was the last, logic would push you to defect in it, and then in the one before; Axelrod made the length of his second tournament uncertain precisely to prevent that.

Your opponent is picked at random from four classic strategies that defect at some point on their own initiative, so the game always tests your reaction:

  • Joss: Tit for Tat with surprise defections; here, at least one in the early rounds.
  • Tester: defects at the start to size you up. If you hit back, it apologizes and plays Tit for Tat; if not, it exploits you every other round.
  • Always Defect, whatever you do.
  • Random: cooperates or defects on a coin toss.

Your profile comes from fixed rules, in this order; the first one that applies decides:

  1. Hawk: you cooperate less than 35% of the time and either open by defecting or defect two or more times unprovoked.
  2. Opportunist: you open by defecting or defect at least once unprovoked, when the opponent had just cooperated and you weren't punishing them.
  3. Unconditional cooperator: you answer less than 40% of their defections with a defection.
  4. Grudger: you keep defecting at least 60% of the time after the opponent goes back to cooperating.
  5. Reciprocal: everything else.

For the tournament, your game is boiled down to three numbers: your first move, and how often you cooperated after the opponent cooperated and after they defected. That strategy plays 200-round games against nine classic strategies and against itself, five times over, with a fixed random seed so the same way of playing always gets the same place. Without you, the tournament looks like this:

Tit for Tat wins the simulated tournament, and strategies that never defect first take the top three places. Tit for Tat. a. 2.50. Pavlov. a. 2.41. Tit for Two Tats. a. 2.40. Tester. b. 2.39. Grim Trigger. a. 2.35. Always Cooperate. a. 2.31. Always Defect. b. 1.89. Joss. b. 1.76Tit for Tat2.50Pavlov2.41Tit for Two Tats2.40Tester2.39Grim Trigger2.35Always Cooperate2.31Always Defect1.89Joss1.76
Average points per round. Our own calculation: we ran the game’s tournament (200 rounds, five repetitions, round robin) with the classic strategies only. Darker bars never defect first. Random (2.12) omitted for space.

Tit for Tat comes first, with 2.50 points per round, and Joss, its sneaky cousin, comes last.

A short game against one particular opponent is a small sample, with no real money or relationships at stake: another game may give a different profile. It is not a personality test or a diagnosis.

How we evaluate all our tests

Results: five ways of playing, and the one that wins most in the long run wins no single match

At the end you see your profile, your opponent's strategy, your game round by round and your place in the simulated tournament. The profile describes how you played this time, not who you are.

What should you expect? That the opponent makes a difference. Against Always Defect there is hardly any chance to show forgiveness, and against Random it is hard to tell punishment from a grudge. Another game, with another opponent, may show another side of your strategy.

Axelrod summed up in four traits what the best-performing strategies had in common:

  • Nice: never defects first.
  • Retaliatory: responds to a defection.
  • Forgiving: goes back to cooperating when the other player does.
  • Clear: the opponent soon understands how it plays.

Tit for Tat has all four and yet it cannot win a single match: at best it ties with its opponent. It wins the tournament because it gets almost everyone to cooperate with it.

Its weak spot is mistakes. In our simulation, if one move in a hundred is flipped by error, two Tit for Tat players drop from 100% to around 40% of rounds of mutual cooperation. Tit for Two Tats, which lets a single defection go, holds steady at 98%.

With mistakes, Tit for Tat sinks into retaliation while the forgiving version keeps cooperatingMoves flipped by mistake. Mutual cooperation. %. Tit for Tat. Tit for Two Tats. 0%. 0.5%. 1%. With 1% mistakes, Tit for Tat drops to 41%. 2%. 5%. 10%Tit for TatTit for Two Tats0%50%100%0%0.5%1%2%5%10%With 1%mistakes, Titfor Tat dropsto 41%Moves flipped by mistakeMutual cooperation
Our own calculation: two players using the same strategy, 200 rounds, 2,000 games per point; each move is flipped by mistake with the stated probability. Intervals are not to scale.

That is why, in 1993, Martin Nowak and Karl Sigmund made the case in Nature for a different strategy, “win-stay, lose-shift”, called Pavlov in this game, which beat Tit for Tat in that world of slip-ups. There is more on the value of not returning every blow in why return only nine out of ten.

In a world without mistakes, returning every blow works. In the real one, forgiving a few pays off.

Reciprocal (tit for tat)

You start by cooperating, respond to defections and go back to cooperating as soon as the other player does. It's the pattern that won Axelrod's tournaments.

See the detail

“Tit for Tat never wins a single match: it wins the tournament.”

What this profile describes

You play like Tit for Tat, Anatol Rapoport's strategy that won both of Axelrod's tournaments: you cooperate from the start, return a defection and don't hold a grudge.

  • Nice: you don't defect first.
  • Retaliatory: a defection gets a response.
  • Forgiving: the punishment lasts only as long as the defection.

Why it works

Tit for Tat never scores more points than its opponent in a match: at best it ties. It wins the tournament because it generates a lot of cooperation around it.

Its weak spot is mistakes: if a cooperation is misread as a defection, two reciprocal players can get trapped in a chain of retaliation. In our 200-round simulation, a mistake in just one move in a hundred was enough for two tit for tat players to drop from 100% to 40% of rounds with mutual cooperation. That is why more forgiving versions, such as Tit for Two Tats, do better when there is noise.

Unconditional cooperator

You keep cooperating even when the opponent defects. You trust and give second chances, even if it costs you points.

See the detail

“Trust without a response doesn't teach the other player to cooperate: it teaches them that defecting is free.”

What this profile describes

You cooperate almost always, even after a defection. It is the most generous strategy, and in a world of cooperators it would do as well as any other.

The problem

In Axelrod's tournaments, strategies that didn't respond to defection were exploited by the more aggressive ones. Axelrod's finding was that lasting cooperation needs reciprocity: being nice isn't enough; you also have to be provocable.

Grudger

You cooperate until you're betrayed. From then on, even if the opponent goes back to cooperating, you find it very hard to trust again.

See the detail

“Never forgiving protects you from a second betrayal. It also rules out a second chance.”

What this profile describes

You resemble the Grim Trigger strategy: you cooperate as long as the other player cooperates, but a single defection breaks your trust for a long time.

Why it pays less than it seems

A grudge deters, but it punishes too much: a single defection, even a mistake, turns the game into a string of mutual defections in which both players lose points. In our simulation, two grudge-holders with 5% mistaken moves cooperated together in only 5% of the rounds. Axelrod pointed to forgiveness as one of the traits of the best-performing strategies: punishing and then cooperating again pays more than punishing forever.

Opportunist

You cooperate some of the time, but defect by surprise when you see a chance to gain an edge, even if the opponent has given you no reason.

See the detail

“A surprise defection pays off once. After that, it changes how the other player plays you.”

What this profile describes

You defected at least once against an opponent who had just cooperated, without punishing a defection of theirs. It's the pattern of strategies such as Joss or Tester: probe the other player and take advantage if they don't respond.

Why it pays less than it seems

In Axelrod's first tournament, Joss, which was Tit for Tat with occasional defections, finished below pure Tit for Tat. Against reciprocal opponents, each surprise defection sets off retaliation that costs more than what was gained. It works better against naive cooperators, who are a minority in a real tournament.

Hawk

You defect almost every time. You protect yourself from being exploited, but you miss out on the points that only mutual cooperation brings.

See the detail

“No one can exploit you if you never cooperate. No one can help you either.”

What this profile describes

You play like Always Defect: the strategy game theory identifies as dominant in a single round, because defecting leaves you better off whatever the other player does.

Why it fails in the long run

In a repeated game, two hawks get 1 point per round, while two cooperators get 3. In Axelrod's tournaments, aggressive strategies won many of their matches but scored few points overall: in the end, the winner was whoever managed to cooperate with the most opponents, not whoever beat the most.

Indicative result. It describes tendencies based on what you answered today, not a fixed trait or a closed label. It is not a diagnosis.

Sources

  • Axelrod, R. (1980). Effective choice in the Prisoner's Dilemma. Journal of Conflict Resolution, 24(1), 3-25. https://doi.org/10.1177/002200278002400101
  • Axelrod, R. (1980). More effective choice in the Prisoner's Dilemma. Journal of Conflict Resolution, 24(3), 379-403. https://doi.org/10.1177/002200278002400301
  • Axelrod, R., & Hamilton, W. D. (1981). The evolution of cooperation. Science, 211(4489), 1390-1396. https://doi.org/10.1126/science.7466396
  • Axelrod, R. (1984). The Evolution of Cooperation. Basic Books.
  • Nowak, M., & Sigmund, K. (1993). A strategy of win-stay, lose-shift that outperforms tit-for-tat in the Prisoner's Dilemma game. Nature, 364(6432), 56-58. https://doi.org/10.1038/364056a0
  • Rapoport, A., Seale, D. A., & Colman, A. M. (2015). Is Tit-for-Tat the answer? On the conclusions drawn from Axelrod's tournaments. PLoS ONE, 10(7), e0134128. https://doi.org/10.1371/journal.pone.0134128