For whatever reason, many have arrived at this site by searching for “prisoner’s dilemma calculator.” I figure some of them might be looking for a simple way of calculating the discount factor necessary to sustain cooperation in an infinite prisoner’s dilemma. As such, I have added such a feature to the game theory calculator. The tab asks for the payoffs of the prisoner’s dilemma, tells you whether what you inputted actually is a prisoner’s dilemma, and then spits out the smallest discount factor that sustains cooperation when both players play a grim trigger strategy.
Let me know if you see any problems.