GNUGO(6)
๐ GNUGO (6) ๐
okay bestie, sit down, hydrate, because we are reading the gnugo manual page together and honestly? it's a whole vibe. this is section 6 of the user-contributed Perl documentation, and it's the manual for GNU Go โ a program that plays the actual, real, ancient game of Go. no cap. let's get into it. โจ
๐ NAME ๐
gnugoโ the GNU program to play the game of Go. that's it, that's the whole rรฉsumรฉ, and it ate. ๐
๐ธ SYNOPSIS ๐ธ
gnugo [--boardsize <num>] [--color <color>] [--handicap <num>] [--komi
<num>] [--quiet] [-v, --version] [-h, --help] [--help debug]
[--copyright] [--mode <mode>] [--replay <color>] [-l, --infile
<filename>] [-L, --until <move>] [-o, --outfile <filename>] [--printsgf
<filename>] [-D, --depth <num>] [-B, --backfill_depth <num>] [--score
[estimate|finish|aftermath] ] [-a, --allpats] [-T, --printboard] [-d,
--debug <level>] [-w, --worms] [-m, --moyo <level>] [-b, --benchmark
num] [-t, --trace] [-r, --seed num]
like, that's a lot of flags and every single one of them is real and matters, so don't skip ahead. ๐ซถ
๐ฆ DESCRIPTION ๐ฆ
GNU Go plays a game of Go against you, the user. but bestie, that is not all it does โ it has a whole main-character list of features: it can play against itself, or against another program, and it can analyse and score a game that's already been recorded. also it's compliant with the Go modem protocol, and it can load and save games in the Smart Game format. versatile queen. ๐
GNU Go's default is a simple alpha-numeric board display (ASCII girlies rise up), but you're absolutely allowed to use a client like CGoban instead. do what feels right. ๐
๐ฎ The game of Go
Go is a game of strategy between two players, usually played on a 19x19 grid called a goban. the two players place black and white stones on the goban in order to enclose territory. Go was invented about 4000 years ago in ancient China. it's giving "we've been at this a while." the game also goes by other names: (Chinese) Wei Chi, (Korean) Baduk, and (Ing) Goe.
๐ฅ๏ธ Playing a game in ASCII mode
to start a game with the default options, you literally just invoke gnugo. the board gets drawn right there in your terminal using ASCII letters. in this mode you can pull up help on the available commands by pressing the h key. so lowkey handy.
wanna play as Black with 4 stones handicap, a 0.5 komi, and record the game into the file record.sgf? say less:
gnugo --color black --handicap 4 --komi 0.5 -o record.sgf
๐ช Playing a game with CGoban
CGoban is a general purpose client program by Bill Shubert for playing Go. it runs under the X Window System with a beautiful, resizeable graphic display. to use GNU Go under X Window System, go get the most recent version of CGoban from Bill Shubert's web site:
http://www.igoweb.org/~wms/comp/cgoban/index.html
then:
- Start CGoban.
- When the CGoban Control panel comes up, select
Go Modem. You will get the Go Modem Protocol Setup. - Choose one (or both) of the players to be
Program, and fill out the box to the path tognugo. - After clicking OK, you get the Game Setup window.
- Choose
Rules Setto be Japanese (otherwise handicaps won't work โ yeah, fr, don't skip this one). - Set the board size and handicap if you want.
- Click OK and you are ready to go. periodt. ๐
in the Go Modem Protocol Setup window, when you specify the path to GNU Go, you can give it command line options, such as --quiet, to suppress most messages. heads up though: since the Go Modem Protocol preempts standard I/O, other messages are sent to stderr, even if they are not error messages. these will show up in the terminal from which you started CGoban. just so you're not confused bestie. ๐ซถ
๐งฎ Scoring system
the game stops when both players pass. GNU Go will attempt to compute and report the score to you. โ ๏ธ it may occasionally make mistakes, due to wrong evaluation of the status of a group โ so like, vibe check the results, okay? you can check the score as follows: in ASCII mode, at the end of the game, stones believed dead are marked in lower case letters, and you have the option of toggling their status before counting. using CGoban, you may use CGoban's counting facility to count the game using either Japanese or Chinese rules. options upon options. iconic.
๐ Viewing a stored game
gnugo -l filename.sgf --mode ascii
this loads filename.sgf and lets you navigate through the game by using the commands forward, back, goto and last. important caveat bestie: it is not possible to navigate through variations in ascii mode. ๐ญ you may also use CGoban to view stored games โ and CGoban can navigate variations. so if you need variations, CGoban is the move.
๐ Documentation
the files in the doc directory contain detailed documentation about debugging options and internal program structure. other documentation may be found in comments throughout the source code. classic. very "the real docs were the comments we read along the way."
๐ก Go Modem Protocol
the Go Modem Protocol is a standard interface between Go programs and graphical display.
it was developed by Bruce Wilcox with input from David Fotland, Anders Kierulf and others. any Go program should use this protocol, since it is standard. since CGoban supports this protocol, the user interface for any Go program can be done entirely through CGoban. using the Go Modem Protocol, you can play with another computer running a different program โ even on a different operating system โ using a modem, a serial cable, or over the internet, if the other program also supports the protocol. you can also communicate with the Go servers using CGoban. networking queen fr fr. ๐
๐ฆ Smart Game Format
games (with comments, variations and other features) can be stored in the Smart Game Format (SGF). this format originated in Anders Kierulf's program Smart Go. Martin Muller and Arno Hollosi developed the current standard, which may be found at:
GNU Go supports the Smart Game Format. ๐
โ๏ธ OPTIONS โ๏ธ
๐ง Main options
--mode modeโ force the playing mode (ascii,gtporgmp). default is ASCII. and plot twist: if no terminal is detected, GMP (Go Modem Protocol) will be assumed. the computer just decides for you, bestie.--replay colorโ replay the game generating moves for color, where color iswhite,black, orboth. (requires-lโ don't forget it, it will not work without it ๐)--quietโ don't print copyright and other informational messages. shhh. ๐คซ-l,--infile fileโ load the SGF file (to score or analyze a recorded game).-L,--until moveโ stop loading just before move is played (e.g.154orL10).-o,--outfile fileโ save the played game to file in SGF format.
๐ฒ Game Options:
--boardsize numโ set the board size to use (1-19). default is 19, other common formats are 13 and 9.--color colorโ choose your color (blackorwhite). Black plays first, White gets the komi compensation. main character choice, honestly.--handicap numโ set the number of handicap stones.--komi numโ set the komi (points given to white player to compensate advantage of the first move, usually5.5or0.5). default is 5.5.
๐ฌ Informative Output:
-v,--versionโ display the version of GNU Go.-h,--helpโ display help message.--help debugโ display help about debugging options.--copyrightโ display copyright notice.
๐ Debugging and advanced options:
-T,--printboardโ show board each move.--level numโ level of play. (default 10; smaller = faster, weaker).-b,--benchmark numโ benchmarking mode โ can be used with-l.-t,--traceโ verbose tracing (use twice or more to trace reading). yes, twice. stack it. ๐ซถ-r,--seed numโ set random number seed.--score [estimate|finish|aftermath]โ count or estimate territory of the input file. usage:
gnugo --score estimate -l filename
loads the SGF file and estimates the score by measuring the influence. use with -L if you want the estimate somewhere else than at the end of the file.
gnugo --score finish -l filename
loads the SGF file and gnugo continues to play by itself up to the very end. then the winner is determined by counting the territory.
gnugo --score aftermath -l filename
similar to --score finish except that a more accurate but slower algorithm is used to determine the final status of the groups. (more accurate = slower, the eternal tradeoff, we know her ๐ญ)
if the option -o outputfilename is provided, the results will also be written as comment at the end of the output file.
--printsgf outfileโ load SGF file, output final position (requires-l).
๐ BUGS ๐
if you find a bug, please send the SGF output file to gnugo@gnu.org together with a description of the bug. bestie please be descriptive, the devs are trying their best. ๐ฅบ
and that's the whole page!! this was GNU Go version 3.9.1, dated 2010-12-17, from the user-contributed Perl documentation section 6. you're welcome, go play some Go, slay, and remember: black plays first. bye pookie ๐โจ๐๐ฆ
๐ฆ where this page comes from
- ubuntu stonking: gnugo 3.9.1-1
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms