[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnugo-devel] atari_atari tuning
From: |
Gunnar Farneback |
Subject: |
[gnugo-devel] atari_atari tuning |
Date: |
Sun, 09 Feb 2003 09:46:06 +0100 |
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 a couple of atari_atari mistakes in the nando test
suite. Regression delta:
atari_atari:20 FAIL PASS [L17]
nngs3:310 FAIL B7 [C5|B5]
nando:7 PASS N16 [N16]
nando:8 PASS M16 [M16|N16]
nando:9 PASS E2 [E1|E2|F1|G1|G2]
nando:20 PASS S8 [S8|S9|T12]
nando:21 PASS T12 [S9|T12]
The first fail is a new test case and the second is a real problem
with the blunder detection, but not really related to this patch.
Additionally the patch includes some new joseki lines in hoshi.sgf,
starting with this position:
-------+
.......|
.......|
.......|
...O...|
...X...|
...OX..|
.......|
.......|
.......|
- more trace output in do_atari_atari()
- update_aa_goal() revised
- new testcase
- atari_atari tuning
- new joseki variations in hoshi.sgf
/Gunnar
Index: engine/combination.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/engine/combination.c,v
retrieving revision 1.43
diff -u -r1.43 combination.c
--- engine/combination.c 2 Jan 2003 00:23:28 -0000 1.43
+++ engine/combination.c 9 Feb 2003 08:27:43 -0000
@@ -610,6 +610,15 @@
if (ON_BOARD(pos) && forbidden[pos])
gprintf("%o%1m ", pos);
gprintf("\n");
+ gprintf("%ogoal: ");
+ if (!goal)
+ gprintf("none");
+ else {
+ for (pos = BOARDMIN; pos < BOARDMAX; pos++)
+ if (ON_BOARD(pos) && goal[pos])
+ gprintf("%o%1m ", pos);
+ }
+ gprintf("\n");
}
/* First look for strings adjacent to the last friendly move played
@@ -1284,7 +1293,7 @@
int pos2 = pos + delta[k];
if (!ON_BOARD(pos2))
continue;
- if ((board[pos] == other || pos == apos) && board[pos2] == EMPTY) {
+ if ((board[pos] != color || pos == apos) && board[pos2] == EMPTY) {
ENQUEUE(pos2, dists[pos] + 1);
}
else if (board[pos] != other && board[pos2] == other) {
Index: patterns/aa_attackpats.db
===================================================================
RCS file: /cvsroot/gnugo/gnugo/patterns/aa_attackpats.db,v
retrieving revision 1.12
diff -u -r1.12 aa_attackpats.db
--- patterns/aa_attackpats.db 3 Feb 2003 10:44:17 -0000 1.12
+++ patterns/aa_attackpats.db 9 Feb 2003 08:27:48 -0000
@@ -313,4 +313,52 @@
;!oplay_attack(*,e) && oplay_attack(*,a,C) && oplay_attack(b,a,D)
+Pattern A19
+# gf New pattern. (3.3.17)
+
+?*X threaten snapback
+O..
+?XX
+
+:8,c
+
+?*X
+O..
+?AA
+
+;lib(A)==2 && olib(*)>1
+
+
+Pattern A20
+# gf New pattern. (3.3.17)
+
+|*X threaten snapback
+|..
+|XX
+
+:8,c
+
+|*X
+|..
+|AA
+
+;lib(A)==2 && olib(*)>1
+
+
+Pattern A21
+# gf New pattern. (3.3.17)
+
+.XO
+*.X
+---
+
+:8,-
+
+.XO
+*.A
+---
+
+;lib(A)==2 && olib(*)>2
+
+
# END OF FILE
Index: patterns/hoshi.sgf
===================================================================
RCS file: /cvsroot/gnugo/gnugo/patterns/hoshi.sgf,v
retrieving revision 1.16
diff -u -r1.16 hoshi.sgf
--- patterns/hoshi.sgf 29 Jan 2003 18:54:27 -0000 1.16
+++ patterns/hoshi.sgf 9 Feb 2003 08:27:48 -0000
@@ -403,6 +403,31 @@
(;W[rd];B[qe]MA[nh]C[S];W[re];B[qg]MA[nh]C[S];W[rf];B[pg]MA[nh]C[S])
(;W[qc];B[qe]MA[nh])
+
+(;W[pe]
+(;B[qe]LB[oe:A][qd:B][pf:C]MA[mi]C[;!oplay_attack(*,A,B,C)
+];W[oe];
+B[qd]MA[mi];W[qg];B[nd]MA[mi];W[ne];B[me]MA[li];W[od];B[oc]MA[li];
+W[og];B[md]MA[li])
+
+(;B[oe]MA[mi]LB[qe:A][qd:B][pf:C]C[;!oplay_attack(A,*,B,C)
+];W[qe]
+(;B[od]MA[mi];W[pg];B[of]MA[mi];W[qd];B[qc]MA[mi];W[rc];B[rb]MA[mi];
+W[qb];B[pc]MA[mi]
+(;W[rd];B[pb]MA[mi];W[qj])
+
+(;W[sb];B[qg]MA[mi];W[qh];B[rg]MA[mi];W[ra];B[qi]MA[mj];W[og];B[rh]
+MA[mj];W[ng];B[ld]MA[kj])
+)
+
+(;B[qd]MA[mi]C[0
+];W[od]MA[mi];B[nd];W[oc]MA[mi];B[nc];W[pb]MA[mi];
+B[nb];W[qc]MA[mi];B[rd];W[rc]MA[mi])
+
+(;B[pc]MA[mi]C[0
+])
+)
+)
)
(;B[nc]MA[lh]C[j
Index: regression/13x13b.tst
===================================================================
RCS file: /cvsroot/gnugo/gnugo/regression/13x13b.tst,v
retrieving revision 1.3
diff -u -r1.3 13x13b.tst
--- regression/13x13b.tst 4 Feb 2003 15:32:18 -0000 1.3
+++ regression/13x13b.tst 9 Feb 2003 08:27:49 -0000
@@ -1,4 +1,4 @@
-# This is a collection of blunders of GNU Go in Stefan Mertin's private
+# This is a collection of mistakes by GNU Go in Stefan Mertin's private
# 13x13 - Computer Go tournament in 2001-2002 (see
# http://www.geocities.com/comp_go/13x13.html).
#
Index: regression/atari_atari.tst
===================================================================
RCS file: /cvsroot/gnugo/gnugo/regression/atari_atari.tst,v
retrieving revision 1.26
diff -u -r1.26 atari_atari.tst
--- regression/atari_atari.tst 16 Jan 2003 15:12:40 -0000 1.26
+++ regression/atari_atari.tst 9 Feb 2003 08:27:49 -0000
@@ -81,3 +81,9 @@
loadsgf games/nngs/gnugo-3.3.10-deye-200210211347.sgf 135
19 combination_attack black
#? [P9|Q7]
+
+# See also nando:25
+loadsgf games/nando/auto017.sgf
+white P16
+20 combination_attack black
+#? [L17]
Index: regression/nando.tst
===================================================================
RCS file: /cvsroot/gnugo/gnugo/regression/nando.tst,v
retrieving revision 1.9
diff -u -r1.9 nando.tst
--- regression/nando.tst 8 Feb 2003 15:52:27 -0000 1.9
+++ regression/nando.tst 9 Feb 2003 08:27:51 -0000
@@ -31,7 +31,7 @@
6 owl_does_defend S2 Q2
#? [0]*
-#CATEGORY=ATARI_ATARI (?)
+#CATEGORY=ATARI_ATARI
loadsgf games/nando/auto006.sgf
7 gg_genmove black
#? [N16]*
@@ -39,7 +39,7 @@
#? [M16|N16]*
# Beware of the double snapback.
-#CATEGORY=TACTICAL_READING
+#CATEGORY=ATARI_ATARI
loadsgf games/nando/auto007.sgf
white A1
black B5
@@ -60,7 +60,7 @@
#? [1 (S2|T2|S1)]*
#CATEGORY=OWL/OPTICS
-# Note that K12 connects out (sacrificing L11 if necessary)
+# Note that K12 connects out (sacrificing L11 if necessary).
loadsgf games/nando/auto010.sgf
12 owl_attack L17
#? [0]*
@@ -100,7 +100,7 @@
# S8, T12 and a lack of liberties are too many weaknesses.
# W must defend.
-#CATEGORY=TACTICAL_READING
+#CATEGORY=ATARI_ATARI
loadsgf games/nando/auto014.sgf
black S16
20 gg_genmove white
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnugo-devel] atari_atari tuning,
Gunnar Farneback <=