com.bolinfest.prisonerbot
Class Iteration

java.lang.Object
  extended by com.bolinfest.prisonerbot.Iteration

public final class Iteration
extends Object

Iteration is a record of one iteration of the Prisoner's Dilemma. Iteration is immutable.

Author:
mbolin

Field Summary
 Choice player1Choice
           
 Choice player2Choice
           
 
Constructor Summary
Iteration(Choice player1Choice, Choice player2Choice)
          The choice of each player in a round of the Prisoner's Dilemma
 
Method Summary
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

player1Choice

public final Choice player1Choice

player2Choice

public final Choice player2Choice
Constructor Detail

Iteration

public Iteration(Choice player1Choice,
                 Choice player2Choice)
The choice of each player in a round of the Prisoner's Dilemma

Method Detail

toString

public String toString()
Overrides:
toString in class Object