This should be a rather trivial exercise (just a binary choice paradigm), so I would encourage you to tackle this yourself instead of hoping anyone might have something around already. Presumably, you're looking at implementing an iterated PD. You'll thus have to decide on the number of iterations you want to apply and, more importantly, which strategy you want the computer "opponent" to pursue. AFAIK, tit-for-tat still works best on average (and according to WikiPedia that only takes four lines of BASIC code).
If you hit any roadblock along the way, let us know.
Regards,
~Dave
Hi,
Is there anybody who has an inquisit version of the prisoner dilemma game? I would like a version in which the participants plays the game againts the computer, however, a version in which two players are needed is also ok!! Thanks in advance!