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
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Player
public Player()
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