public class GtpSynchronizer
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
GtpSynchronizer.Listener
Callback that is called after each change in the engine's move
number.
|
Constructor and Description |
---|
GtpSynchronizer(GtpClientBase gtp) |
GtpSynchronizer(GtpClientBase gtp,
GtpSynchronizer.Listener listener,
boolean fillPasses) |
Modifier and Type | Method and Description |
---|---|
void |
init(ConstBoard board,
Komi komi,
TimeSettings timeSettings) |
boolean |
isOutOfSync()
Did the last GtpSynchronizer.synchronize() fail?
|
void |
synchronize(ConstBoard board,
Komi komi,
TimeSettings timeSettings) |
void |
updateAfterGenmove(ConstBoard board)
Update internal state after genmove.
|
void |
updateHumanMove(ConstBoard board,
Move move)
Send human move to engine.
|
public GtpSynchronizer(GtpClientBase gtp)
public GtpSynchronizer(GtpClientBase gtp, GtpSynchronizer.Listener listener, boolean fillPasses)
public boolean isOutOfSync()
public void init(ConstBoard board, Komi komi, TimeSettings timeSettings) throws GtpError
GtpError
public void synchronize(ConstBoard board, Komi komi, TimeSettings timeSettings) throws GtpError
GtpError
public void updateHumanMove(ConstBoard board, Move move) throws GtpError
GtpError
public void updateAfterGenmove(ConstBoard board)