jaige
Class AIGameStats
java.lang.Object
jaige.AIGameStats
- All Implemented Interfaces:
- GameListener, GameOverListener, MoveListener, NewGameListener, TurnListener
public class AIGameStats
- extends java.lang.Object
- implements MoveListener, TurnListener, NewGameListener, GameOverListener
This class keeps track of statistics throughout an AI matchup.
The current stats it keeps track of:
wins
draws
wins / orientation
average move time
total moves
total time
Copyright: Copyright (c) Jaige 2007
- Version:
- 1.0
- Author:
- Rob Taft
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AIGameStats
public AIGameStats()
processMoveEvent
public void processMoveEvent(MoveEvent event)
- Specified by:
processMoveEvent
in interface MoveListener
reset
public void reset()
setOrientations
public void setOrientations(Orientation... o)
processNewGameEvent
public void processNewGameEvent(NewGameEvent event)
- Specified by:
processNewGameEvent
in interface NewGameListener
processTurnEvent
public void processTurnEvent(TurnEvent event)
- Description copied from interface:
TurnListener
- Called when the turn changes.
In the case of an AI, this is only called when it is the AIs turn.
- Specified by:
processTurnEvent
in interface TurnListener
- Parameters:
event
- TurnEvent
getMatchData
public Match getMatchData()
processGameOverEvent
public void processGameOverEvent(GameOverEvent event)
- Specified by:
processGameOverEvent
in interface GameOverListener