org.tiling.game
Class Player

java.lang.Object
  |
  +--org.tiling.game.Player
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable, java.io.Serializable, Strategy
Direct Known Subclasses:
GAEncoded, PrisonersDilemmaPlayer, Random, RevisedDowning, TitForTwoTats

public abstract class Player
extends java.lang.Object
implements Strategy, java.lang.Cloneable, java.io.Serializable, java.lang.Comparable

See Also:
Serialized Form

Constructor Summary
Player()
           
 
Method Summary
 void addScore(int score)
           
 java.lang.Object clone()
           
 int compareTo(java.lang.Object obj)
           
 int getGamesPlayed()
           
 float getMeanScore()
           
 int getScore()
           
 void incrementGamesPlayed()
           
 java.lang.String 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
generateMove, getDescription
 

Constructor Detail

Player

public Player()
Method Detail

addScore

public void addScore(int score)

getScore

public int getScore()

incrementGamesPlayed

public void incrementGamesPlayed()

getGamesPlayed

public int getGamesPlayed()

getMeanScore

public float getMeanScore()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable