[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnugo-devel] tuning patch
From: |
Gunnar Farneback |
Subject: |
[gnugo-devel] tuning patch |
Date: |
Sun, 11 Jan 2004 00:53:56 +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) |
Here's a patch with owl tuning and a minor revision of the semeai
code.
- avoid ko captures when filling outer liberties in semeai reading
- owl tuning
Regression delta:
ld_owl:315 PASS 1 P18 [1 P18]
neurogo:12 PASS B10 [B10]
strategy3:141 PASS C7 [C7]
semeai:45 PASS 0 0 PASS [0 0 PASS]
strategy4:182 PASS F8 [E7|F8]
nngs4:400 PASS 0 [0]
9x9:310 PASS H7 [H7|H8]
9x9:350 PASS 0 [0]
/Gunnar
Index: engine/owl.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/engine/owl.c,v
retrieving revision 1.187
diff -u -r1.187 owl.c
--- engine/owl.c 7 Jan 2004 10:00:20 -0000 1.187
+++ engine/owl.c 9 Jan 2004 18:28:52 -0000
@@ -857,7 +857,7 @@
if (liberty_of_goal(pos, owlb)) {
if (!liberty_of_goal(pos, owla)) {
/* outside liberty */
- if (safe_move(pos, color)) {
+ if (safe_move(pos, color) == WIN) {
safe_outside_liberty_found = 1;
outside_liberty.pos = pos;
break;
@@ -1416,7 +1416,7 @@
int other = OTHER_COLOR(color);
int result = NO_MOVE;
- if (safe_move(liberty, other))
+ if (safe_move(liberty, other) == WIN)
return liberty;
if (is_self_atari(liberty, other)) {
int fill;
Index: patterns/owl_attackpats.db
===================================================================
RCS file: /cvsroot/gnugo/gnugo/patterns/owl_attackpats.db,v
retrieving revision 1.101
diff -u -r1.101 owl_attackpats.db
--- patterns/owl_attackpats.db 7 Jan 2004 10:00:20 -0000 1.101
+++ patterns/owl_attackpats.db 9 Jan 2004 18:28:54 -0000
@@ -1059,6 +1059,27 @@
; oplay_attack(*,a,b,c,c)
+Pattern A232b
+# gf New pattern. (3.5.4)
+# See trevorc:240.
+
+?O. Jump down to block
+Y..
+.*.
+...
+---
+
+:8,-,value(80)
+
+?ed
+Yab
+.*c
+...
+---
+
+; xlib(d)<=2 && lib(e)>3 && oplay_attack(*,a,b,c,c)
+
+
Pattern A233
# db added (3.1.10)
@@ -4473,21 +4494,42 @@
Pattern A1124a
# tm New Pattern (3.1.22) (see nngs:770 decide-dragon K4)
# see also D1140
+# gf Revised. Might still be too general. (3.5.4)
?OY
-?*.
-???
+x*.
+xx.
:8,-,value(70)
?AY
b*e
-cd?
+cd.
;(owl_escape_value(d) > 0
; || owl_escape_value(b) > 0
; || owl_escape_value(c) > 0)
;&& !oplay_defend_both(e,*,A,e)
+
+
+Pattern A1124b
+# gf New pattern. (3.5.4) (see nngs:770 decide-dragon K4)
+
+?OX
+x.*
+xx?
+
+:8,-,value(70)
+
+?OA
+be*
+cd?
+
+;(owl_escape_value(d) > 0
+; || owl_escape_value(b) > 0
+; || owl_escape_value(c) > 0)
+;&& xplay_connect(e,*,e,A)
+;&& oplay_disconnect(*,e,e,A)
Pattern A1125
Index: patterns/owl_defendpats.db
===================================================================
RCS file: /cvsroot/gnugo/gnugo/patterns/owl_defendpats.db,v
retrieving revision 1.110
diff -u -r1.110 owl_defendpats.db
--- patterns/owl_defendpats.db 7 Jan 2004 10:00:20 -0000 1.110
+++ patterns/owl_defendpats.db 9 Jan 2004 18:28:55 -0000
@@ -1367,12 +1367,13 @@
Pattern D311
+# gf Added n classification. (3.5.4)
OX? try to seal off some space
.*O
.??
-:8,-,value(60)
+:8,n,value(60)
OX?
a*O
- [gnugo-devel] tuning patch,
Gunnar Farneback <=
- [gnugo-devel] tuning patch, Gunnar Farneback, 2004/01/16
- [gnugo-devel] tuning patch, Martin Holters, 2004/01/16
- [gnugo-devel] tuning patch, Gunnar Farneback, 2004/01/18
- [gnugo-devel] tuning patch, Gunnar Farneback, 2004/01/21
- [gnugo-devel] tuning patch, Gunnar Farneback, 2004/01/27