Examples tagged with repeated-gamellms.txt

Select an example to explore it in the playground.

Beginner - Introductory Models
Intermediate - Classic Dynamics
Advanced - Complex Simulations

Prisoner's Dilemma: Noise, Tit-for-Tat, and Forgiveness

One accidental defection turns unforgiving tit-for-tat into a prisoner's dilemma revenge spiral. Forgive some of those slips and cooperation holds.

Level: Advanced

game-theorycooperationreciprocitytit-for-tatnash-equilibriumsocial-dilemmarepeated-gamenoisesimpy

  • Stocks: trust (last move seen), cumulative payoff
  • Flows: defections, retaliations, forgiveness events
  • Feedback Loops: retaliation echo (reinforcing), forgiveness (balancing)
  • Probes: cooperation_rate, round_payoff, cumulative_payoff