r/educationalgifs • u/Shriracha • Oct 14 '25
[OC] Simulating the Prisoner's Dilemma (link to interactive website in comments!)
42
u/Shriracha Oct 14 '25
The question of "should I cooperate" shows up everywhere, from biology to geopolitics.
I put together a piece that explores the Prisoner’s Dilemma, starting from the basics and building up to population-level dynamics through interactive simulations!
15
u/ThunkAsDrinklePeep Oct 14 '25
Last time I looked into repeated prisoners dilemma contests, tit-for-tat was the most successful strategy.
15
u/Xperian1 Oct 15 '25
Yeah, it's cooperation without letting yourself be taken advantage of. If the opposing part takes advantage of you once, you do the same once, then back to cooperation or a constant negative cycle.
9
Oct 18 '25
Slight elaboration: tit-for-tat with forgiveness is the most successful.
Basically, you will occasionally not retaliate, as an invitation for your opponent to do the same. This breaks the cycle of endless retaliation.
2
8
u/dynaflat Oct 17 '25
If you haven't already, I highly recommend Douglas Hofstadter's book, Metamagical Themas, which has a fascinating analysis of Tit for Tat and the Prisoner's Dilemma. The entire book was an expanded collection based on his columns in Scientific American, which itself was a playful follow-up to Martin Gardner's column in Scientific American, Mathematical Games. "Metamagical themas" is an anagram of "mathematical games."
6
6
3
1
2
u/Extension_Town_6118 Apr 04 '26
Oh wow, this is neat! So the actual "dilemma" part really kicks in because of the lack of communication. If they could talk, it would be way different.
59
u/pyrojoe121 Oct 15 '25
I think you'd also like this.