org.moyoman.comm.client
Class PrerecordedPlayerManager

java.lang.Object
  |
  +--org.moyoman.comm.client.PlayerManager
        |
        +--org.moyoman.comm.client.PrerecordedPlayerManager

public class PrerecordedPlayerManager
extends PlayerManager

This class is used for playing a game of Go where the game is specified in advance. This would be used for testing purposes, or for training modules such as neural networks or other modules that learn and are trained on preexisting data.


Field Summary
private  GameRecord gameRecord
          The game record to be played out.
 
Fields inherited from class org.moyoman.comm.client.PlayerManager
 
Constructor Summary
PrerecordedPlayerManager(MoyomanPlayer black, MoyomanPlayer white, GameRecord gr)
          Create the PrerecordedPlayerManager object.
 
Method Summary
 void play()
          Play out the game.
 
Methods inherited from class org.moyoman.comm.client.PlayerManager
getBlackPlayer, getGameRecord, getMoyomanPlayers, getSuggestedMove, getWhitePlayer, isSingleStep, playPrerecordedMoves, setSingleStepFlag, singleStep, takeBackMove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gameRecord

private GameRecord gameRecord
The game record to be played out.

Constructor Detail

PrerecordedPlayerManager

public PrerecordedPlayerManager(MoyomanPlayer black,
                                MoyomanPlayer white,
                                GameRecord gr)
                         throws InternalErrorException
Create the PrerecordedPlayerManager object.

Parameters:
black - The MoyomanPlayer to play black.
white - The MoyomanPlayer to play white.
gr - The game record to be played out.
Throws:
InternalErrorException - Thrown if the operation fails for any reason.
Method Detail

play

public void play()
          throws InternalErrorException
Play out the game. This involves the two MoyomanPlayer players playing out the prerecorded game.

Overrides:
play in class PlayerManager
Throws:
InternalErrorException - Thrown if the operation fails for any reason.