TOPICS
Search

Tit-for-Tat


Tit-for-tat is a strategy for the iterated prisoner's dilemma in which a prisoner cooperates on the first move, and thereafter copies the previous move of the other prisoner. It was submitted by A. Rapoport to Axelrod's computer tournaments, where it performed notably well despite its simplicity (Axelrod 1980ab, Axelrod and Hamilton 1981).

Write C for cooperation and D for defection. If two tit-for-tat players have been cooperating and one accidentally plays D, their outcome changes from (C,C) to (D,C) or (C,D). If they both copy the other's actual move thereafter and there are no further errors, the two asymmetric outcomes alternate indefinitely. Generous tit-for-tat starts by cooperating and always cooperates after C, but cooperates with a fixed positive probability after D. This allows two such players to return to (C,C) after an error (Nowak and Sigmund 1992, Veritasium 2023).

In an error-free match with equally weighted rounds, tit-for-tat never earns a larger total payoff than its opponent (Veritasium 2023). To see this, let d_j be 1 if the opponent defects in round j and 0 otherwise, and set d_0=0. The payoff difference in round j is (T-S)(d_(j-1)-d_j), where T and S are the temptation and sucker's payoffs in the prisoner's dilemma. The payoff differences telescope to -(T-S)d_n over n rounds. Thus the total payoffs are equal if the opponent ends with C, and the opponent earns T-S more if the final move is D.

Tit-for-tat is neither uniformly optimal nor uniquely successful among simple strategies. For example, Nowak and Sigmund (1993) described a win-stay, lose-shift strategy that can outperform tit-for-tat.

Wolfram (2026) found that, among deterministic 2-state-machine strategies for the iterated prisoner's dilemma, tit-for-tat ranks below the top performer for long-run average payoff.


See also

Iterated Prisoner's Dilemma, Prisoner's Dilemma

Explore with Wolfram|Alpha

References

Axelrod, R. "Effective Choice in the Prisoner's Dilemma." J. Conflict Resolution 24, 3-25, 1980a. https://doi.org/10.1177/002200278002400101.Axelrod, R. "More Effective Choice in the Prisoner's Dilemma." J. Conflict Resolution 24, 379-403, 1980b. https://doi.org/10.1177/002200278002400301.Axelrod, R. and Hamilton, W. D. "The Evolution of Cooperation." Science 211, 1390-1396, 1981. https://doi.org/10.1126/science.7466396.Goetz, P. "Phil Goetz's Complexity Dictionary." https://web.archive.org/web/20001209121200/http://www.cs.buffalo.edu/~goetz/DICT/dict2.html#T.Nowak, M. and Sigmund, K. "Tit for Tat in Heterogeneous Populations." Nature 355, 250-253, 1992. https://doi.org/10.1038/355250a0.Nowak, M. and Sigmund, K. "A Strategy of Win-Stay, Lose-Shift That Outperforms Tit-for-Tat in the Prisoner's Dilemma Game." Nature 364, 56-58, 1993. https://doi.org/10.1038/364056a0.Veritasium. "This Game Theory Problem Will Change the Way You See the World." Dec. 23, 2023. https://www.youtube.com/watch?v=mScpHTIi-kM.Wolfram, S. "Games between Programs: The Ruliology of Competition." Jun. 4, 2026. https://writings.stephenwolfram.com/2026/06/games-between-programs-the-ruliology-of-competition/.

Referenced on Wolfram|Alpha

Tit-for-Tat

Cite this as:

Weisstein, Eric W. "Tit-for-Tat." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/Tit-for-Tat.html

Subject classifications