See also IteratedPrisonersDilemma
"You can play the prisoner's dilemma online against a computer opponent at" http://serendip.brynmawr.edu/playground/pd.html
with some pointers to online literature, e.g.
http://william-king.www.drexel.edu/top/eco/game/game.html