147.7. gnugo-3.8
GNU Go — a Go engine that plays over GTP, and the opponent for KDE's Kigo
3.8-1 · GPL-3.0-or-later · 2.2 SBU · 7.5 MiB, 7 files · 41_system, 572 of 1047 · ports/core/games-board/gnugo
Homepage: https://www.gnu.org/software/gnugo/
GNU Go is a program that plays Go. Its --mode gtp speaks the Go Text Protocol on standard input and output, which is how kigo, KDE’s Go board, runs it as the computer opponent; it also has an ASCII board of its own in a terminal. The package carries gnugo, its manual page in section 6 and its Texinfo manual.
Depends on: ncurses, readline.
Required by (1): kigo.
Sources: gnugo-3.8.tar.gz (3.1 MiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install gnugo'
build.sh:
export CFLAGS="$CFLAGS -fcommon"
./configure --prefix=/usr --sysconfdir=/etc \
--with-readline \
--with-curses
make
make DESTDIR=$PKG install
export CFLAGS="$CFLAGS -fcommon"— Place uninitialised global variables in a common block.patterns/mkmcpat.candengine/globals.ceach definemeaningless_white_movesandmeaningless_black_moveswithoutextern, and under GCC’s default-fno-commonthe link of themkmcpatpattern generator fails with a multiple-definition error.--with-readline— Line editing and history at the ASCII board’s move prompt, through readline. Upstream’s default is without it.--with-curses— Coloured debugging output through ncurses’s terminfo; upstream’s default, stated.
Programs: gnugo.
Directories: /usr/share/licenses/gnugo.
The engine’s strength settings (level 10, the owl and semeai node limits, the cache size) and its rules (Japanese counting, resignation allowed) are upstream’s compiled-in defaults; Kigo passes the level it wants on the command line. Socket support for GTP over TCP is on by default.