public class TwoGtp extends GtpEngine
Constructor and Description |
---|
TwoGtp(Program black,
Program white,
Program referee,
java.lang.String observer,
int size,
Komi komi,
int numberGames,
boolean alternate,
java.lang.String filePrefix,
boolean verbose,
Openings openings,
TimeSettings timeSettings,
ResultFile resultFile)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
autoPlay() |
void |
close() |
void |
handleCommand(GtpCommand cmd)
Handle command.
|
void |
interruptCommand()
Callback for interrupting commands.
|
void |
setDebugToComment(boolean enable)
Store stderr of programs during move generation in SGF comments.
|
void |
setMaxMoves(int maxMoves)
Limit number of moves.
|
cmdKnownCommand, cmdListCommands, cmdName, cmdProtocolVersion, cmdQuit, cmdUnknown, cmdVersion, isInterrupted, isRegistered, log, mainLoop, parsePointArgument, parsePointListArgument, printInvalidResponse, register, respond, setName, setQuit, setVersion, unregister
public TwoGtp(Program black, Program white, Program referee, java.lang.String observer, int size, Komi komi, int numberGames, boolean alternate, java.lang.String filePrefix, boolean verbose, Openings openings, TimeSettings timeSettings, ResultFile resultFile) throws java.lang.Exception
komi
- The fixed komi. See TwoGtp documentation for option
-komijava.lang.Exception
public void autoPlay() throws java.lang.Exception
java.lang.Exception
public void close()
public void handleCommand(GtpCommand cmd) throws GtpError
GtpEngine
handleCommand
in class GtpEngine
GtpError
public void interruptCommand()
GtpEngine
interruptCommand
in class GtpEngine
public void setDebugToComment(boolean enable)
public void setMaxMoves(int maxMoves)
maxMoves
- Maximum number of moves after which genmove will fail,
-1 for no limit.