org.tiling.game.prisonersdilemma
Class PrisonersDilemmaPlayer

java.lang.Object
  |
  +--org.tiling.game.Player
        |
        +--org.tiling.game.prisonersdilemma.PrisonersDilemmaPlayer
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable, PrisonersDilemmaMoves, java.io.Serializable, Strategy
Direct Known Subclasses:
Friedman, Joss, Tester, TitForTat, White, You

public abstract class PrisonersDilemmaPlayer
extends Player
implements PrisonersDilemmaMoves

See Also:
Serialized Form

Fields inherited from interface org.tiling.game.prisonersdilemma.PrisonersDilemmaMoves
C, D
 
Constructor Summary
PrisonersDilemmaPlayer()
           
 
Method Summary
abstract  Move generateFirstMove()
           
 Move generateMove(java.util.List ownMoveHistory, java.util.List opponentsMoveHistory)
           
abstract  Move generateMove(Move ownLastMove, Move opponentsLastMove)
           
static Player instantiate(java.lang.String shortName)
           
 
Methods inherited from class org.tiling.game.Player
addScore, clone, compareTo, getGamesPlayed, getMeanScore, getScore, incrementGamesPlayed, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.tiling.game.Strategy
getDescription
 

Constructor Detail

PrisonersDilemmaPlayer

public PrisonersDilemmaPlayer()
Method Detail

instantiate

public static Player instantiate(java.lang.String shortName)
                          throws java.lang.InstantiationException,
                                 java.lang.ClassNotFoundException,
                                 java.io.IOException

generateMove

public Move generateMove(java.util.List ownMoveHistory,
                         java.util.List opponentsMoveHistory)
Specified by:
generateMove in interface Strategy

generateFirstMove

public abstract Move generateFirstMove()

generateMove

public abstract Move generateMove(Move ownLastMove,
                                  Move opponentsLastMove)