CSC 548 Fall 2011
Object-Oriented Design

 

Prisoners Dilemma:

Write a program to simulate the prisoners dilemma.

The main program should create a Tournament object and then run the tournament.

The constructor of the Tournament class should have one argument, n, the number of times the players should play the game.

The constructor for tournament creates two Players and then a Game that pits those two players against each other.

An Example of a Prisoners Dilemma payoff matrix
True False
True 3, 3 1, 5
Fasle 5, 1 2, 2