[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnugo-devel] reading patch
From: |
Gunnar Farneback |
Subject: |
[gnugo-devel] reading patch |
Date: |
Sat, 21 Sep 2002 22:19:35 +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 one-liner solves reading:172 with only a marginal increase in the
node count for reading.tst. I'd say it's well worth it.
- break_chain2_moves() revised
/Gunnar
Index: engine/reading.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/engine/reading.c,v
retrieving revision 1.70
diff -u -r1.70 reading.c
--- engine/reading.c 11 Sep 2002 15:33:17 -0000 1.70
+++ engine/reading.c 21 Sep 2002 19:47:57 -0000
@@ -4561,7 +4561,7 @@
ADD_CANDIDATE_MOVE(libs[k], 0, *moves);
}
- if (stackp <= backfill2_depth) {
+ if (stackp <= backfill2_depth || have_common_lib(str, apos, NULL)) {
break_chain_moves(apos, moves);
if (unsafe[0] && unsafe[1]) {
int libs2[3];
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnugo-devel] reading patch,
Gunnar Farneback <=