twogtp - Go Text Protocol adapter for playing games between two Go programs.
twogtp -black command
-white command
[-alternate] [-auto] [-config file] [-estimate-score] [-force] [-games] [-komi komi] [-referee command] [-sgffile prefix] [-size n] [-verbose]
twogtp -help
twogtp -analyze file.dat [-force]
twogtp -compare file.sgf...
twogtp -version
Adapter program for playing games between two Go programs supporting GTP (Go Text Protocol).
An optional third GTP Go program can be used as a referee for observing the game and answering commands related to the final game score. TwoGtp forwards the following commands to all programs:
If the option -sgffile is used, the games are saved after they are finished and a result text file in table format is created with some statistics. If the program(s) support the GTP command cputime these statistics include CPU times. The errors of the statistics are calculated by the standard deviation of the results divided by the square root of the number of unique games, which is correct only for a sufficiently large number of games (especially if the percentage of wins is close to 0% or 100%).
Alternate colors. Black and White are exchanged every odd game. The scores saved in the results table if -sgffile are still using the name Black and White as given with -black and -white.
Analyze the result file file.dat. Creates a HTML file file.html with links to the games and summary statistics. Also creates a text file file.summary.dat with a table row containing the most important summary statistics.
Automatically play games. Use this option if you want to run TwoGtp as a standalone program without a program like GoGui which controls the move generation with genmove_black and genmove_white commands. If a result file already exists (as specified with -sgffile) and contains less games than specified with -games, the remaining games will be played. Use -force to overwrite existing result files.
Command for black program.
Compare a list of SGF files given as arguments an exit. Works only with SGF files with alternating moves and without setup stones.
Read command line options and arguments from file.
Send an estimate_score command to all programs after each move and save them to a file after the game. The responses to estimate_score must begin with a score in the form B+ or W+. The file is a table with valid scores translated to floating point numbers (positive for program -black).
Overwrite existing files.
Number of games to play (0 means no limit).
Display help and exit.
Komi. If this option is not used, the komi can be set with the komi command or default komi 5.5 will be used with option -auto.
Command for referee program.
Save games after they are finished with filename prefix-n.sgf with n being the game number. The results are appended to the file prefix.dat.
Board size for games. If this option is not used the size will be set with the boardsize command or default size 19 will be used with option -auto.
Print debugging messages.
Print version and exit.
Command for white program.
Indicate interrupt ability for GoGui. TwoGtp will forward the interrupt to both programs with the appropriate method if they implement either gogui_interrupt or gogui_sigint. See Chapter 5, Interrupting Commands of the GoGui documentation.
Return a title for the current game consisting of the game number (if option -sgffile was used) and the player names.
Send command to black player.
Send command to referee program.
Send command to white player.