[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gnugo-devel] optics patch
From: |
Paul Pogonyshev |
Subject: |
Re: [gnugo-devel] optics patch |
Date: |
Tue, 28 Jan 2003 01:31:35 +0200 |
User-agent: |
KMail/1.4.3 |
Gunnar wrote:
> Paul wrote (on January 2):
> > this patch fixes ninestones:290 (one of the tests i've submitted
> > recently). it has no other impact on regressions.
> >
> > - evaluate_diagonal_intersection() tries additional moves to
> > defend a diagonal
> > - does_secure() made global and moved to reading.c
>
> It causes an assertion failure in the appended game.
sorry. here is the fix.
Paul
Index: engine/optics.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/engine/optics.c,v
retrieving revision 1.67
diff -u -p -r1.67 optics.c
--- engine/optics.c 23 Jan 2003 21:59:03 -0000 1.67
+++ engine/optics.c 27 Jan 2003 23:21:56 -0000
@@ -1731,7 +1731,7 @@ evaluate_diagonal_intersection(int m, in
int lib;
if (board[diagonal] == other && findlib(diagonal, 1, &lib) == 1) {
- if (does_secure(color, lib, pos)) {
+ if (lib != pos && does_secure(color, lib, pos)) {
value = 1.0;
apos = lib;
break;