gnugo-devel
[Top][All Lists]
Advanced

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

[gnugo-devel] Connection patch


From: Gunnar Farneback
Subject: [gnugo-devel] Connection patch
Date: Mon, 26 May 2003 23:37:10 +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)

This patch solves connection:104 with no other effects on regressions.

- spread_connection_distances() revised

/Gunnar

Index: engine/readconnect.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/engine/readconnect.c,v
retrieving revision 1.47
diff -u -r1.47 readconnect.c
--- engine/readconnect.c        22 May 2003 22:50:06 -0000      1.47
+++ engine/readconnect.c        26 May 2003 07:30:45 -0000
@@ -2759,12 +2759,14 @@
              && approxlib(bpos, color, 3, NULL) >= 3
              && (board[apos] == color
                  || (board[apos] == EMPTY
+                     && countlib(pos) > 2
                      && !common_vulnerabilities(conn->vulnerable1[pos],
                                                 conn->vulnerable2[pos],
                                                 apos, gpos, color)
                      && approxlib(apos, other, 3, NULL) <= 2))
              && (board[fpos] == color
                  || (board[fpos] == EMPTY
+                     && countlib(epos) > 2
                      && !common_vulnerabilities(conn->vulnerable1[pos],
                                                 conn->vulnerable2[pos],
                                                 fpos, gpos, color)
@@ -2786,12 +2788,14 @@
              && approxlib(ipos, color, 3, NULL) >= 3
              && (board[hpos] == color
                  || (board[hpos] == EMPTY
+                     && countlib(pos) > 2
                      && !common_vulnerabilities(conn->vulnerable1[pos],
                                                 conn->vulnerable2[pos],
                                                 hpos, gpos, color)
                      && approxlib(hpos, other, 3, NULL) <= 2))
              && (board[jpos] == color
                  || (board[jpos] == EMPTY
+                     && countlib(epos) > 2
                      && !common_vulnerabilities(conn->vulnerable1[pos],
                                                 conn->vulnerable2[pos],
                                                 jpos, gpos, color)




reply via email to

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