Sample Prisoners Dilemma agents

Annotated source code

Plain source code

Tit For Tat (Java) [Edit] [Profile]
Tit For Tat (Python) [Edit] [Profile]
The classic tournament-winning retribution strategy.
Exploit #1 (Java) [Edit] [Profile]
Tries to defect only when it thinks it won't be punished.
Deep Red (Java) [Edit] [Profile]
Heavily uncooperative.
Always Cooperate (Java) [Edit] [Profile]
Always cooperates, no matter what.