Table of Contents
GoGui will work with all programs that can understand the most basic commands of version 1 or 2 of the Go Text Protocol.
It is required that the Go program can handle the following commands:
The commands in parentheses are used if the program supports the protocol_version command and responds with 1.
If the Go engine does not support generating moves, because it provides only other functionality, it is recommended that it implements list_commands, so that GoGui can detect that genmove is not supported. In this case, GoGui will always set the computer color by default to None, so that the engine should not be made playing moves automatically. Since the user can still issue play commands, it is recommended that the engine responds to a genmove command with a meaningful failure response.
The following other commands are used by GoGui:
If the Go program does not understand them, you will still be able to play games, but you cannot use all of the functionality of GoGui. If undo is not supported, the position will be synchronized with the Go program after an undo by sending the complete game from the beginning. If set_free_handicap is not supported, GoGui will transmit handicap stones with play commands.
The command gg-undo is en extension command used by GNU Go, which differs from undo by an optional integer argument to undo multiple moves.
The following GoGui specific GTP extension commands are used if supported by the program:
For providing a window title, which may be game specific, or include a player name that is not known at program creation time. The title is queried and set after a new game is started.
This is an extension to the standard play command which can take a sequence of moves. If the Go program supports it (together with GNU Go's gg-undo for multiple undo), then navigating in games will be much faster, because only a single command is used instead of a large number of play and undo commands). Note that the command line length can become large for this command; the Go program should not use a limit for the command length. The Go program is expected to return a failure and not to change its current board state if it cannot execute all of the moves in the sequence.