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.
Fields inherited from class org.moyoman.comm.client.PlayerManager |
|
Method Summary |
void |
play()
Play out the game. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
gameRecord
private GameRecord gameRecord
- The game record to be played out.
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.
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.