public final class GtpClientUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getAnalyzeCommands(GtpClientBase gtp)
Query analyze commands configuration from the program.
|
static java.lang.String |
getPlaySequenceCommand(GtpClientBase gtp) |
static java.lang.String |
getPlaySequenceCommand(GtpClientBase gtp,
java.util.ArrayList<Move> moves)
Construct a gogui-play_sequence command from a list of moves.
|
static java.lang.String |
getTitle(GtpClientBase gtp)
Get title for current game from program.
|
static boolean |
isPlaySequenceSupported(GtpClientBase gtp) |
static void |
saveParameters(GtpClientBase gtp,
java.util.ArrayList<AnalyzeDefinition> analyzeCommands,
java.io.File file)
Save parameters to a GTP file.
|
public static java.lang.String getAnalyzeCommands(GtpClientBase gtp)
public static java.lang.String getPlaySequenceCommand(GtpClientBase gtp, java.util.ArrayList<Move> moves)
public static java.lang.String getPlaySequenceCommand(GtpClientBase gtp)
public static java.lang.String getTitle(GtpClientBase gtp)
public static boolean isPlaySequenceSupported(GtpClientBase gtp)
public static void saveParameters(GtpClientBase gtp, java.util.ArrayList<AnalyzeDefinition> analyzeCommands, java.io.File file) throws ErrorMessage
gtp
- The GTP connection.analyzeCommands
- The analyze command definitions for this
program (e.g. from AnalyzeDefinition.read()).ErrorMessage
- If writing the file fails or none of the analyze
commands have the type "param" (error responses from the program are
written in comment lines in the resulting file).
See GoGui documentation, chapter "Analyze Commands"