First prototype in python, work in progress, I should think of more interesting project names.
a bunch of selfish prisoners having sex and mutating. WHOA. a very basic evolutionary algorithm, a last night's play.
Prisoner's dilemma is a scenario in a game theory (check it out if you don't know about it) its interesting to me in part because it explains human moral intuitions through a selfish evolutionary perspective, in other words, why people are generally nice to each other.
In the iterated prisoners dilemma the game is played repeatedly thus each agent has an opportunity to learn about other agents behaviours and potentially punish noncooperation. Cooperation may then arise as an equilibrium outcome.
I didn't get tit for tat which I originaly expected, nor did I manage to get any other cooperative equilibrium. cooperation does evolve, but it doesn't last, strange, I expected that cooperative species will raise and stay dominant as I enlarge the number of interactions before a step in the evolution. (its rational to be nice if you need to stick around) need to investigate and think about this some more.
I'll post more info and code later or never. screenshot and someone with a different approach and a spacial dimension.