gogui-terminal

gogui-terminal — Simple text based interface to Go programs supporting GTP.

Synopsis

gogui-terminal [-config file] [-color] [-size n] [-verbose] program

gogui-terminal -help

gogui-terminal -version

Description

Simple text based interface to Go programs supporting the Go Text Protocol. The argument program is a command line for the Go program . The interface keeps track of the board and prints it after each change on the board. If a move (coordinate on the board or pass) is entered, it is played on the board for the color to move, followed by a genmove command sent to the program. Other supported commands are:

genmove
Send a genmove command for the color to move to the program.
help
Print help.
list
Send a list_commands command to the program.
load
Load game from a SGF file. Moves are translated into play commands for the program.
newgame [size]
Start a new game with a given board size.
save
Save game to file in SGF format.
undo
Send a undo command to the program.
quit
Terminate program and exit.

GTP commands that change the board state are not allowed. Other GTP commands are forwarded to the program.

Options

-config file

Read command line options and arguments from the given file.

-color

Colorize text output of the Go board using ANSI escape sequences.

-size n

Board size.

-verbose

Log GTP stream to standard error.

-version

Print version and exit.