gnugo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnugo-devel] --decide-connection


From: Gunnar Farneback
Subject: [gnugo-devel] --decide-connection
Date: Thu, 11 Oct 2001 17:39:46 +0200
User-agent: EMH/1.14.1 SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.3 Emacs/20.7 (sparc-sun-solaris2.7) (with unibyte mode)

I've put up a patch at

http://www.lysator.liu.se/~gunnar/gnugo/patches/gunnar_1_10.2.gz

which has also been added to CVS. This patch primarily implements the
new option --decide-connection. To use it you would typically invoke
GNU Go like this (using a game record from Tristan's collection):

  gnugo --quiet -l Aya991113-1.sgf --decide-connection Q7/Q4 -o vars.sgf

and get the result

  Q7 and Q4 can be connected at Q6 (5 variations)
  Q7 and Q4 can be disconnected at P5 (8 variations)

plus an sgf file vars.sgf showing which moves have been tried during
the connection reading plus a comment for each node about which
trymove() command generated the move and the results of certain
function calls at the position.

While implementing this I made some changes in readconnect.c.

* New functions connect() and disconnect() acting as external entry
  points to recursive_connect() and recursive_disconnect().
* Most functions return 0 and WIN instead of 0 and 1. This is
  necessary for the sgf traces to work right.
* More moves tried in in moves_to_connect_in_two_moves().
* Common liberty checking code simplified by using call to
  have_common_lib() in board.c (new function).
* Comment string added to trymove() calls so they show up in the sgf
  traces.

Additionally there are some minor bugfixes in board.c, sgfdecide.c and
main.c.

/Gunnar



reply via email to

[Prev in Thread] Current Thread [Next in Thread]