Class Summary |
BoardFrame |
BoardFrame holds a BoardPanel |
BoardPanel |
BoardPanel is the battlefield. |
Bugs |
Bugs is a concrete class extending Player and always defecting |
Game |
Game is used to play Prisoner's Dilemma Tournament |
Player |
Player is an abstract class indicating the functionality of players
Concrete extensions can play the tournament |
Porky |
Porky is a concrete class extending Player and always cooperating |
Random |
Random is a concrete class extending Player and implementing a
totally random strategy: |
Square |
Square is used to label a row or a column as to who is the player. |
TFT |
TFT is a concrete class extending Player and implementing the
Tit-for-tat strategy:
cooperate on first move, then copy opponent's previous move |