Back to Projects

Prisoner's Dilemma

Play the classic game theory experiment against AI opponents with different strategies

Your Strategy

Opponent Strategy

You

0
VS

Opponent

0
Round: 0 / 10

Game History

Payoff Matrix

Opponent Cooperates Opponent Defects
You Cooperate Both: +3 You: 0
Opponent: +5
You Defect You: +5
Opponent: 0
Both: +1

Strategy Descriptions

Tit for Tat: Cooperates first, then copies opponent's last move

Tit for Two Tats: Cooperates unless opponent defects twice in a row

Always Cooperate: Always cooperates regardless

Always Defect: Always defects regardless

Grudger: Cooperates until opponent defects once, then always defects

Detective: Tests with C,D,C,C then plays Tit for Tat or Always Defect

Pavlov: Repeats last move if it led to good outcome, switches if not

Random: Randomly chooses to cooperate or defect