com.bolinfest.prisonerbot
Class Iteration
java.lang.Object
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
Constructor Summary |
Iteration(Choice player1Choice,
Choice player2Choice)
The choice of each player in a round of the Prisoner's Dilemma |
player1Choice
public final Choice player1Choice
player2Choice
public final Choice player2Choice
Iteration
public Iteration(Choice player1Choice,
Choice player2Choice)
- The choice of each player in a round of the Prisoner's Dilemma
toString
public String toString()
- Overrides:
toString
in class Object