I've seen a couple of oblique references to this in other comments, but I'll go a little deeper: if you want to truly understand the prisoner's dilemma scenario and how it relates to human, or more generally, animal behavior, there is incredible coverage of the topic in Richard Dawkins' The Selfish Gene. He pioneered the idea of running PD "competitions" in an attempt to discover the best evolutionary strategy for PD…
> - The agent must have a good chance of competing against the opponent more than once. I was actually thinking about this the other day. I was wondering how much the population size and matching algorithm in the iterated Prisoner's Dilemma matter to the strategy outcome. I suspect it's quite a lot, given that if you never play the same opponent again, strategies that defect often should come out quite well, but if y…
And this is interesting because it gives us a toy model of moralistic "Do unto others" (as opposed to rational exchange).