gnugo-devel
[Top][All Lists]
Advanced

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

[gnugo-devel] fixed values and shape values cleanup


From: Gunnar Farneback
Subject: [gnugo-devel] fixed values and shape values cleanup
Date: Tue, 28 Oct 2003 22:25:25 +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)

The main pattern databases (patterns.db and patterns2.db) contain a
number of patterns with large fixed values or very large shape values.
Most of these were introduced as workarounds for various severe move
valuation problems before or around 3.0.0. Since then the move
valuation, in particular the territorial evaluation, have been
substantially improved. At the same time, as has been observed many
times, the workaround patterns cause problems on their own. Most
significant are the large shape values which were intended to raise a
low value to a reasonable level but now tend to raise from a
reasonable level to sometimes absurdly large values. The fixed values
don't have that kind of problem but instead tend to be overly general,
causing misvaluations.

This patch removes almost all large fixed values and most of the large
shape values. It also revises some J patterns but there are more of
those which look overly general and/or overvalued as J patterns.

It's possible that some of the workarounds actually are still needed.
I'm fully prepared to reinstate some of them if needed but not without
a test case to point to.

The regression delta is 6 passes:
trevora:470     PASS C5 [!E2]
strategy2:70    PASS N16 [M15|J15|N16|J16]
nicklas5:804    PASS D6 [D6]
trevord:170     PASS Q8 [Q8]
nngs2:180       PASS G16 [G16]
13x13b:8        PASS F10 [F10]

The patch also includes an influence intrusion pattern and a revised
test case in order to solve failures in arend:30, 13x13:16, and
nngs3:800. The influence pattern is somewhat questionable but should
be less problematic than the corresponding fixed values or shape
values.

- tuning
- influence tuning
- revised test case

/Gunnar

Index: patterns/barriers.db
===================================================================
RCS file: /cvsroot/gnugo/gnugo/patterns/barriers.db,v
retrieving revision 1.57
diff -u -r1.57 barriers.db
--- patterns/barriers.db        30 Aug 2003 06:34:37 -0000      1.57
+++ patterns/barriers.db        28 Oct 2003 20:17:14 -0000
@@ -1003,6 +1003,13 @@
 :8,D
 
 
+#########################################################
+#                                                       #
+#   Intrusion patterns (secondary influence sources)    #
+#                                                       #
+#########################################################
+
+
 Pattern Intrusion1
 
 ???x
@@ -1038,13 +1045,6 @@
 >return (lib(a)>2 || (lib(a) == 2 && connect_and_cut_helper(a,b,c)));
 
 
-#########################################################
-#                                                       #
-#   Intrusion patterns (secondary influence sources)    #
-#                                                       #
-#########################################################
-
-
 Pattern Intrusion1b
 
 xxxx
@@ -2196,6 +2196,26 @@
 OO?
 
 :-,B,value(20)
+
+
+Pattern Intrusion61
+# gf New pattern. (3.5.2)
+# This pattern is somewhat questionable. See arend:30 and 13x13:16 for
+# positions where it helps.
+
+|..!?
+|.X..
+|.QXX
+|.OO?
+
+:8,B,value(20)
+
+|.a!?
+|bEc.
+|.QDD
+|.OO?
+
+;!oplay_connect(a,b,c,D,E)
 
 
 #########################################################
Index: patterns/patterns.db
===================================================================
RCS file: /cvsroot/gnugo/gnugo/patterns/patterns.db,v
retrieving revision 1.115
diff -u -r1.115 patterns.db
--- patterns/patterns.db        18 Jul 2003 18:59:22 -0000      1.115
+++ patterns/patterns.db        28 Oct 2003 20:17:17 -0000
@@ -1111,13 +1111,14 @@
 
 
 Pattern CC73
+# gf Reduced shape value. (3.5.2)
 
 ?X??          connect!
 o.*O
 O..X
 ?.O?
 
-:8,scad,shape(5)
+:8,scad,shape(3)
 
 
 Pattern CC74
@@ -1201,13 +1202,14 @@
 
 Pattern CC79
 # ab modified (3.3.10)
+# gf Reduced shape value. (3.5.2)
 
 ?O.xx
 XO.*.
 XXO..
 .....
 
-:8,XCad,shape(5)
+:8,XCad,shape(3)
 
 ?a.xx
 Xa.*.
@@ -1585,6 +1587,7 @@
 
 
 Pattern EC16a
+# gf Reduced shape value. (3.5.2)
 
 ?..O?         hanging connection is best
 .*.OX
@@ -1592,7 +1595,7 @@
 .....
 -----
 
-:8,C,shape(5)
+:8,C,shape(3)
 
 ?..O?
 .*bOX
@@ -1774,6 +1777,7 @@
 
 Pattern EC27
 # gf Removed obsolete add_connect_move action. (3.3.16)
+# gf Reduced shape value. (3.5.2)
 
 ?X*O          Use edge to stay connected.
 ?XOX
@@ -1781,7 +1785,7 @@
 ....
 ----
 
-:8,-,shape(5)
+:8,-,shape(3)
 
 ?X*O
 ?XOB
@@ -2231,6 +2235,7 @@
 
 
 Pattern EC63
+# gf Fixed value removed and constraint revised. (3.5.2)
 
 ?X?           connect underneath if X can't cut
 OXO
@@ -2238,18 +2243,19 @@
 ...
 ---
 
-:|,XC,value(20)
+:|,XC
 
 ?X?
-OXO
-a*b
+aXb
+.*.
 ...
 ---
 
-; 
(oplay_attack(*,a,a)&&!oplay_defend(*,b,a,b))||(oplay_attack(*,b,b)&&!oplay_defend(*,a,b,a))
+;!oplay_disconnect(*,a,b)
 
 
 Pattern EC64
+# gf Removed fixed value. (3.5.2)
 
 ..xxx           threaten connection
 .O.Xx
@@ -2257,7 +2263,7 @@
 .....
 -----
 
-:8,OXead,value(15)
+:8,OXead
 
 ..xxx
 .O.Xx
@@ -2269,6 +2275,7 @@
 
 
 Pattern EC65
+# gf Reduced shape value. (3.5.2)
 
 ox..o         Connect underneath
 O*X.O
@@ -2276,17 +2283,18 @@
 .....
 -----
 
-:8,XC,shape(6)
+:8,XC,shape(3)
 
 
 Pattern EC66
+# gf Reduced shape value. (3.5.2)
 
 OXX.O          connect below
 .*O..
 .....
 -----
 
-:8,XCad,shape(6)
+:8,XCad,shape(3)
 
 OXX.O
 b*Oa.
@@ -2297,13 +2305,14 @@
 
 
 Pattern EC67
+# gf Reduced shape value. (3.5.2)
 
 OXX.O          connect below
 .O*..
 .....
 -----
 
-:8,XCad,shape(6)
+:8,XCad,shape(3)
 
 OXX.O
 bO*a.
@@ -4066,6 +4075,7 @@
 
 
 Pattern EB411
+# gf Reduced shape value. (3.5.2)
 
 ...??oo
 O....oo
@@ -4075,7 +4085,7 @@
 .....oo
 -------
 
-:8,ead,shape(7)
+:8,ead,shape(3)
 
 ...??oo
 O....oo
@@ -4107,6 +4117,7 @@
 
 
 Pattern EB501
+# gf Reduced shape value. (3.5.2)
 
 ....?         hane if attached
 .*X.X
@@ -4115,10 +4126,11 @@
 .....
 -----
 
-:8,ed,shape(5)
+:8,ed,shape(3)
 
 
 Pattern EB501a
+# gf Reduced shape value. (3.5.2)
 
 ?..X.?         push in to stabilize
 ..OX.X
@@ -4127,7 +4139,7 @@
 ......
 ------
 
-:8,ed,shape(5)
+:8,ed,shape(3)
 
 
 Pattern EB502
@@ -4212,6 +4224,7 @@
 
 Pattern EB507a
 # tm New Pattern (3.1.20) (see strategy:26)
+# gf Reduced shape value. (3.5.2)
 
 ?o??
 ?O..           block
@@ -4220,7 +4233,7 @@
 ....
 ----
 
-:8,Oe,shape(4)
+:8,Oe,shape(3)
 
 
 Pattern EB508
@@ -4384,6 +4397,7 @@
 
 Pattern EB521
 # gf FIXME: This fixed value looks dangerous. (3.3.12)
+# gf Removed fixed value and E classification. (3.5.2)
 
 ..O?        urgent atari
 ..OX
@@ -4392,7 +4406,7 @@
 ....
 ----
 
-:8,XEd,value(30)
+:8,Xd
 
 ..O?
 ..OX
@@ -5103,12 +5117,13 @@
 
 
 Pattern EB710
+# gf Removed fixed value. (3.5.2)
 
 o.OOX?              block
 .*XX.X
 ------
 
-:8,OXe,value(5)
+:8,OXe
 
 
 Pattern EB711
@@ -5413,6 +5428,7 @@
 
 
 Pattern EB914
+# gf Removed fixed value. (3.5.2)
 
 ?O??X.           an exception to the preceeding pattern
 *XOO..
@@ -5420,7 +5436,7 @@
 ......
 ------
 
-:8,d,value(10)
+:8,d
 
 ?O??X.
 *AOOa.
@@ -5434,6 +5450,7 @@
 
 
 Pattern EB915
+# gf Removed fixed value. (3.5.2)
 
 ?O??X.           exception, continued
 OXOO..
@@ -5441,7 +5458,7 @@
 ......
 ------
 
-:8,d,value(10)
+:8,d
 
 ?O??X.
 OAOOa.
@@ -5593,6 +5610,7 @@
 
 
 Pattern EB925
+# gf Removed fixed value and E classification, revised constraint. (3.5.2)
 
 XX...x         extend on third line
 O.O*.x
@@ -5600,15 +5618,15 @@
 ......
 ------
 
-:8,Ed,shape(3),value(12)
+:8,d,shape(3)
 
 XX...x
-A.O*.x
+a.O*.x
 ......
 ......
 ------
 
-; !dead(A)
+; !dead(a) && !oplay_disconnect(*,a,*)
 
 
 ############################
@@ -5919,7 +5937,7 @@
 
 
 Pattern EB1202
-# gf FIXME: Too high value? (3.3.12)
+# gf Removed fixed value. (3.5.2)
 
 ?...?       hane
 O.X*.
@@ -5927,11 +5945,12 @@
 ....?
 -----
 
-:8,OXeCad,value(25)
+:8,OXeCad
 
 
 Pattern EB1203
 # gf Added constraint. (3.3.12)
+# gf Removed fixed value. (3.5.2)
 
 ?..X.       extend to defend and connect
 O.XO*
@@ -5939,7 +5958,7 @@
 .....
 -----
 
-:8,OXeCad,value(25)
+:8,OXeCad
 
 ?..X.
 a.XO*
@@ -6060,6 +6079,7 @@
 
 
 Pattern EB1309
+# gf Reduced shape value. (3.5.2)
 
 ??.o???        urgent hane
 ?.XO..O
@@ -6067,10 +6087,11 @@
 .......
 -------
 
-:8,-,shape(5)
+:8,-,shape(3)
 
 
 Pattern EB1310
+# gf Removed fixed value. (3.5.2)
 
 ?..X?         after hane opponent must fall back
 ..XOO
@@ -6078,7 +6099,7 @@
 ....o
 -----
 
-:8,OXead,value(20)
+:8,OXead
 
 ?.cX?
 .bXOO
@@ -6090,6 +6111,7 @@
 
 
 Pattern EB1311
+# gf Removed fixed value. (3.5.2)
 
 ?..X?         double sente
 .XXOO
@@ -6097,7 +6119,7 @@
 ....o
 -----
 
-:8,OXead,value(20)
+:8,OXead
 
 
 #################
@@ -6106,13 +6128,14 @@
 
 
 Pattern EB1401
+# gf Removed fixed value. (3.5.2)
 
 |.XO?          large endgame move
 |.XO?
 |.*.o
 +----
 
-:8,OXe,value(5)
+:8,OXe
 
 
 Pattern EB1402
@@ -6176,40 +6199,42 @@
 ;!dead(a) && !attack(B)
 
 
-Pattern EB1404b
-# Second followup to EB1403.
-# and guarantees that the move is followed up.
-# gf Revised pattern. (3.1.3)
-# eb revised constraint (3.3.13)
-# see nngs3:1110
-# ab FIMXE: Still needed? Also maybe reuse code from connect_and_cut_helper
-# here?
-
-?oX??          Connect after hane.
-..XO?
-?XO*o
------
-
-:8,Xe,value(12)
-
-?oB??
-ecBa?
-?AO*o
------
-
-;!dead(a) && xmoyo(e) && !oplay_defend_both(*,?,c,A,B) && !oplay_attack(*,c,*) 
&& !attack(A)
+# Pattern EB1404b
+# # Second followup to EB1403.
+# # and guarantees that the move is followed up.
+# # gf Revised pattern. (3.1.3)
+# # eb revised constraint (3.3.13)
+# # see nngs3:1110
+# # ab FIXME: Still needed? Also maybe reuse code from connect_and_cut_helper
+# #           here?
+# # gf Removed. (3.5.2)
+# 
+# ?oX??          Connect after hane.
+# ..XO?
+# ?XO*o
+# -----
+# 
+# :8,Xe,value(12)
+# 
+# ?oB??
+# ecBa?
+# ?AO*o
+# -----
+# 
+# ;!dead(a) && xmoyo(e) && !oplay_defend_both(*,?,c,A,B) && 
!oplay_attack(*,c,*) && !attack(A)
 
 
 Pattern EB1404c
 #cut followup to sente hane
 #evand new pattern (3.3.13)
+# gf Fixed value removed. (3.5.2)
 
 ?oX??
 .*XO?
 ?XO.o
 -----
 
-:8,Xe,value(12)
+:8,Xe
 
 ?oX??
 c*Xa?
@@ -6453,6 +6478,7 @@
 
 
 Pattern EB1610
+# gf Reduced shape value. (3.5.2)
 
 ..x..          followup
 .....
@@ -6461,10 +6487,11 @@
 .....
 -----
 
-:8,cad,shape(10)
+:8,cad,shape(3)
 
 
 Pattern EB1611
+# gf Reduced shape value. (3.5.2)
 
 ..x..          followup
 ..*..
@@ -6473,7 +6500,7 @@
 .....
 -----
 
-:8,cad,shape(10)
+:8,cad,shape(3)
 
 
 ###################
@@ -6919,6 +6946,7 @@
 
 
 Pattern EB2002
+# gf Reduced shape value. (3.5.2)
 
 ?.....         don't jump if the edge is open
 .*....
@@ -6929,12 +6957,13 @@
 ......
 ------
 
-:8,-,shape(-7)
+:8,-,shape(-3)
 
 
 Pattern EB2003
 # With a sufficiently strong position directly to the right of the
 #    diagram, this may be a good move to build a moyo.
+# gf Reduced shape value. (3.5.2)
 
 ?......         don't jump if the edge is open
 .*.....
@@ -6945,7 +6974,7 @@
 ?......
 -------
 
-:8,-,shape(-7)
+:8,-,shape(-3)
 
 
 ######################################################################
@@ -7392,13 +7421,14 @@
 
 Pattern CB328
 #ab Revised constraint (3.3.3)
+# gf Reduced shape value. (3.5.2)
 
 ?.?         seal opponent in and connect
 ...      
 .*O
 OX?
 
-:8,OXC,shape(10)
+:8,OXC,shape(3)
 
 ?.?
 ...
@@ -8066,12 +8096,13 @@
 
 
 Pattern CB227
+# gf Reduced shape value. (3.5.2)
 
 ?OO.             bend around
 XX*.
 ....
 
-:8,OXead,shape(4)
+:8,OXead,shape(3)
 
 
 Pattern CB228
@@ -8940,13 +8971,14 @@
 
 
 Pattern CB326
+# gf Reduced shape value. (3.5.2)
 
 ?.??       seal opponent in 
 ....
 O.*.
 OXXO
 
-:8,OXe,shape(7)
+:8,OXe,shape(3)
 
 ?.??
 .bc.
@@ -9750,6 +9782,7 @@
 
 
 Pattern ED43
+# gf Reduced shape value. (3.5.2)
 
 ?OO..o      push through and cut!
 XX*X.o
@@ -9757,7 +9790,7 @@
 .....?
 ------
 
-:8,OXad,shape(10)
+:8,OXad,shape(3)
 
 ?OO..o
 AA*B.o
@@ -9769,6 +9802,7 @@
 
 
 Pattern ED44
+# gf Reduced shape value. (3.5.2)
 
 O....      capture one stone
 O..*.
@@ -9777,10 +9811,11 @@
 .....
 -----
 
-:8,OXecad,shape(5)
+:8,OXecad,shape(3)
 
 
 Pattern ED45
+# gf Fixed value removed. (3.5.2)
 
 ?XX...        defense is urgent
 OO.O*.
@@ -9788,7 +9823,7 @@
 ?.....
 ------
 
-:8,OXead,value(30)
+:8,OXead
 
 ?XX...
 OOaO*.
@@ -9800,6 +9835,7 @@
 
 
 Pattern ED46
+# gf Removed fixed value. (3.5.2)
 
 ?X...        jump to take territory on 4-th line
 .....
@@ -9809,10 +9845,11 @@
 .....
 -----
 
-:8,OXead,value(20)
+:8,OXead
 
 
 Pattern ED47
+# gf Reduced shape value. (3.5.2)
 
 X.O...x
 xXO.*.x
@@ -9820,10 +9857,11 @@
 .......
 -------
 
-:8,OXed,shape(5)
+:8,OXed,shape(3)
 
 
 Pattern ED48
+# gf Reduced shape value. (3.5.2)
 
 ?...       break ponnuki, threaten to cut
 ?.*O
@@ -9832,7 +9870,7 @@
 ?...
 ----
 
-:8,OXead,shape(10)
+:8,OXead,shape(3)
 
 ?...
 ?.*O
@@ -9845,6 +9883,7 @@
 
 
 Pattern ED49
+# gf Reduced shape value. (3.5.2)
 
 ??..?       push to stabilize O
 ?.X..
@@ -9853,7 +9892,7 @@
 .....
 -----
 
-:8,OXead,shape(5)
+:8,OXead,shape(3)
 
 
 Pattern ED49b
@@ -9878,6 +9917,7 @@
 
 
 Pattern ED50
+# gf Removed fixed value. (3.5.2)
 
 .....        don't get sealed in!
 ..*Xx
@@ -9887,10 +9927,11 @@
 .....
 -----
 
-:8,OeBad,value(20)
+:8,OeBad
 
 
 Pattern ED51
+# gf Reduced shape value. (3.5.2)
 
 .........        block to build influence
 o.....*Xx
@@ -9900,10 +9941,11 @@
 .........
 ---------
 
-:8,OXead,shape(10)
+:8,OXead,shape(3)
 
 
 Pattern ED52
+# gf Removed fixed value. (3.5.2)
 
 ?.....        attach in sente
 ......
@@ -9914,10 +9956,11 @@
 ......
 ------
 
-:8,OXad,value(20)
+:8,OXad
 
 
 Pattern ED53
+# gf Removed fixed value, added B classification. (3.5.2)
 
 ?OO...        push through and cut
 XX*X..
@@ -9925,7 +9968,7 @@
 ?.....
 ------
 
-:8,OXead,value(25)
+:8,OXBead
 
 ?OO...
 EE*D..
@@ -9933,10 +9976,11 @@
 ?.....
 ------
 
-; oplay_attack(*,a,b,c,E)&&oplay_attack(*,a,c,D)
+; oplay_attack(*,a,b,c,E) && oplay_attack(*,a,c,D)
 
 
 Pattern ED54
+# gf Removed fixed value. (3.5.2)
 
 ?OO...        cut
 XXOX..
@@ -9944,7 +9988,7 @@
 ?.....
 ------
 
-:8,sOXBad,value(30)
+:8,sOXBad
 
 ?OO...
 AAOB..
@@ -9952,10 +9996,11 @@
 ?.....
 ------
 
-; oplay_attack(*,d,A)&&oplay_attack(d,B)
+; oplay_attack(*,d,A) && oplay_attack(d,B)
 
 
 Pattern ED55
+# gf Removed fixed value. (3.5.2)
 
 ?OO...        cut
 XXOX..
@@ -9963,7 +10008,7 @@
 ?.....
 ------
 
-:8,ad,value(30)
+:8,Bad
 
 ?OO...
 XXOB..
@@ -9987,6 +10032,7 @@
 
 
 Pattern ED57
+# gf Reduced shape value. (3.5.2)
 
 OOXX??      push to defend
 .XOX..
@@ -9994,7 +10040,7 @@
 ......
 ------
 
-:8,-,shape(8)
+:8,-,shape(3)
 
 OOXX??
 .AOX..
@@ -10006,6 +10052,7 @@
 
 
 Pattern ED58
+# gf Removed fixed value and revised constraint. (3.5.2)
 
 ??X??        connect to defend everything
 ?OXO?
@@ -10013,15 +10060,15 @@
 .....
 -----
 
-:8,Xad,value(15)
+:8,BCad
 
-??X??
-?CXO?
+??G??
+?cGO?
 .*OAd
 ..bef
 -----
 
-; !oplay_defend(*,A) && xplay_attack(*,b,C)
+; alive(G) && !oplay_defend(*,A) && xplay_attack(*,b,c)
 
 > antisuji(b);
 > antisuji(d);
@@ -10080,6 +10127,7 @@
 
 
 Pattern ED62
+# gf Reduced shape value. (3.5.2)
 
 ....?        if double hane is not reasonable, extend
 OO..?
@@ -10088,7 +10136,7 @@
 .....
 -----
 
-:8,OXead,shape(5)
+:8,OXead,shape(3)
 
 ....?
 OOb.?
@@ -10139,6 +10187,7 @@
 
 
 Pattern ED65
+# gf Removed fixed value. (3.5.2)
 
 ?o..?        pull back to stabilize
 ?O..?
@@ -10147,58 +10196,60 @@
 xxx..
 -----
 
-:8,OXad,value(15)
-
-
-Pattern ED66
-# tm Modified (3.1.18) (see trevorb:610)
-# FIXME: Is this just too generic?
-# gf This pattern is way too general, see e.g. 13x13b:8.
-#    Furthermore the second half of the constraint doesn't really make
-#    sense. Consider removal. (3.3.17)
-
-?x?         draw back for safety
-O.X
-.*O
-...
-...
----
-
-:8,OJ
-
-?x?
-OaB
-.*O
-...
-...
----
-
-; xplay_defend(*,a,*) && !xplay_attack(*,a,B)
-
-
-Pattern ED67
-# tm Modified (3.1.18) (see trevorb:610)
-# FIXME: Is this just too generic?
-#   Identical to ED66, but with j attribute instead of J
-# gf See comments for ED66. This pattern is redundant anyway. (3.3.17)
+:8,OXad
 
-?x?         draw back for safety
-O.X
-.*O
-...
-...
----
 
-:8,Oj
+# Pattern ED66
+# # tm Modified (3.1.18) (see trevorb:610)
+# # FIXME: Is this just too generic?
+# # gf This pattern is way too general, see e.g. 13x13b:8.
+# #    Furthermore the second half of the constraint doesn't really make
+# #    sense. Consider removal. (3.3.17)
+# # gf Removed. (3.5.2)
+# 
+# ?x?         draw back for safety
+# O.X
+# .*O
+# ...
+# ...
+# ---
+# 
+# :8,OJ
+# 
+# ?x?
+# OaB
+# .*O
+# ...
+# ...
+# ---
+# 
+# ; xplay_defend(*,a,*) && !xplay_attack(*,a,B)
 
-?x?
-OaB
-.*O
-...
-...
----
 
-; xplay_defend(*,a,*) && !xplay_attack(*,a,B)
+# Pattern ED67
+# # tm Modified (3.1.18) (see trevorb:610)
+# # FIXME: Is this just too generic?
+# #   Identical to ED66, but with j attribute instead of J
+# # gf See comments for ED66. This pattern is redundant anyway. (3.3.17)
+# # gf Removed. (3.5.2)
+# 
+# ?x?         draw back for safety
+# O.X
+# .*O
+# ...
+# ...
+# ---
+# 
+# :8,Oj
+# 
+# ?x?
+# OaB
+# .*O
+# ...
+# ...
+# ---
+# 
+# ; xplay_defend(*,a,*) && !xplay_attack(*,a,B)
 
 
 Pattern ED68
@@ -10365,6 +10416,7 @@
 
 
 Pattern ED77
+# gf Reduced shape value. (3.5.2)
 
 ?XX?            defend cut
 O*O.
@@ -10372,7 +10424,7 @@
 ....
 ----
 
-:8,OXead,shape(5)
+:8,OXead,shape(3)
 
 ?XX?
 O*Oc
@@ -10384,6 +10436,7 @@
 
 
 Pattern ED78
+# gf Reduced shape value. (3.5.2)
 
 ?OO?          push through and cut
 X*X.
@@ -10391,7 +10444,7 @@
 ....
 ----
 
-:8,OXead,shape(5)
+:8,OXead,shape(3)
 
 ?OO?
 X*Xc
@@ -10464,6 +10517,7 @@
 
 
 Pattern ED82
+# gf Reduced shape value. (3.5.2)
 
 |.....       atari is usually a better way to use the dead stone
 |..*..
@@ -10471,7 +10525,7 @@
 |..XOO
 |..OX?
 
-:8,-,shape(-4)
+:8,-,shape(-3)
 
 |.....
 |..*..
@@ -11107,12 +11161,13 @@
 
 
 Pattern CD87
+# gf Reduced shape value. (3.5.2)
 
 .XO        create cutting points
 .*.
 .XO
 
-:-,OXad,shape(5)
+:-,OXad,shape(3)
 
 cXO
 a*b
@@ -11138,12 +11193,13 @@
 
 
 Pattern CD89
+# gf Reduced shape value. (3.5.2)
 
 ?OXoo         prevent ponnuki
 .XO*o
 ?.Xoo
 
-:8,OXead,shape(10)
+:8,OXead,shape(3)
 
 ?OAoo
 .XO*o
@@ -11153,13 +11209,14 @@
 
 
 Pattern CD90
+# gf Reduced shape value. (3.5.2)
 
 OXx        extending usually better than capturing, but not at edge
 XOX
 ?*.
 ???
 
-:8,OXead,shape(5)
+:8,OXead,shape(3)
 
 bXx
 AOX
@@ -11171,12 +11228,13 @@
 
 Pattern CD91
 # gf Revised constraint. (3.3.18)
+# gf Reduced shape value. (3.5.2)
 
 ?XO.        atari to prevent opponent's expansion
 OOX.
 ..*.
 
-:8,XEd,shape(10)
+:8,XEd,shape(3)
 
 ?Xa.
 bbX.
@@ -11227,13 +11285,14 @@
 
 
 Pattern CD93
+# gf Removed fixed value and reduced shape. (3.5.2)
 
 ?OX.       break through one way or the other
 ?*..
 X.X.
 ...O
 
-:8,XBad,shape(10),value(10)
+:8,XBad,shape(3)
 
 ?OF.
 ?*be
@@ -11245,6 +11304,7 @@
 
 Pattern CD94
 # gf Split and revised. (3.3.14)
+# gf Reduced shape value. (3.5.2)
 
 ????????       jump out
 ????????
@@ -11253,7 +11313,7 @@
 X...????
 x.O..???
 
-:8,OXEad,shape(4)
+:8,OXEad,shape(3)
 
 ????????
 ????????
@@ -11267,6 +11327,7 @@
 
 Pattern CD94b
 # gf Split and revised. (3.3.14)
+# gf Reduced shape value. (3.5.2)
 
 ????????       jump out
 ????????
@@ -11275,7 +11336,7 @@
 X...????
 O.O..???
 
-:8,OXEad,shape(4)
+:8,OXEad,shape(3)
 
 ????????
 ????????
@@ -11371,46 +11432,48 @@
 # FIXME: The two following patterns may be superfluous due to the
 #        atari_atari code.
 
-Pattern CD100
-# This should strictly give an "attack one out of three" move reason,
-# but since there is no support for these, we do something ad hoc
-# instead.
-# gf Revised constraint. (3.1.13)
-
-?OOX         atari twice to capture something
-XOX.
-.X*o
-?.o?
-
-:8,sXad,value(7)
-
-?ffX
-EfXa
-bD*o
-?co?
-
-;olib(b)>=2 && !attack(E) && !attack(D) && oplay_attack_either(*,a,b,c,D,E)
-;&& !oplay_attack(*,f)
-
-
-Pattern CD101
-# Converse of previous pattern. Same comment applies.
-# gf Revised constraint. (3.1.13)
-
-?XXO         defend against atari sequence
-OXO.
-.O*x
-?.x?
-
-:8,Xad,value(7)
+# Pattern CD100
+# # This should strictly give an "attack one out of three" move reason,
+# # but since there is no support for these, we do something ad hoc
+# # instead.
+# # gf Revised constraint. (3.1.13)
+# # gf Removed. We leave this to the atari_atari code. (3.5.2)
+# 
+# ?OOX         atari twice to capture something
+# XOX.
+# .X*o
+# ?.o?
+# 
+# :8,sXad,value(7)
+# 
+# ?ffX
+# EfXa
+# bD*o
+# ?co?
+# 
+# ;olib(b)>=2 && !attack(E) && !attack(D) && oplay_attack_either(*,a,b,c,D,E)
+# ;&& !oplay_attack(*,f)
 
-?FFO
-eFOa
-bd*x
-?cx?
 
-;xlib(b)>=2 && !attack(e) && !attack(d) && !attack(F)
-;&& xplay_attack_either(*,a,b,c,d,e)
+# Pattern CD101
+# # Converse of previous pattern. Same comment applies.
+# # gf Revised constraint. (3.1.13)
+# # gf Removed. We leave this to the atari_atari code. (3.5.2)
+# 
+# ?XXO         defend against atari sequence
+# OXO.
+# .O*x
+# ?.x?
+# 
+# :8,Xad,value(7)
+# 
+# ?FFO
+# eFOa
+# bd*x
+# ?cx?
+# 
+# ;xlib(b)>=2 && !attack(e) && !attack(d) && !attack(F)
+# ;&& xplay_attack_either(*,a,b,c,d,e)
 
 
 Pattern CD102
@@ -11874,7 +11937,7 @@
 
 
 Pattern EJ20
-
+                                  
 ?x.XOOo       Connect underneath.
 oOXOX.o
 o.*O..o
@@ -12070,6 +12133,7 @@
 Pattern EJ33
 # gf Sometimes it's better to play one step to the left. See
 # nngs:1180. (3.3.7)
+# gf Revised classification. (3.5.2)
 
 ...XX          common important follow up 
 .O.*O
@@ -12077,7 +12141,7 @@
 .....
 -----
 
-:8,sJ
+:8,XCd
 
 
 Pattern EJ34
@@ -12104,16 +12168,17 @@
 :8,J
 
 
-Pattern EJ36
-
-?....ooo     seal the opponent!
-OO...ooo
-X*...ooo
-........
-........
---------
-
-:8,-,value(22)
+# Pattern EJ36
+# # gf Removed. (3.5.2)
+# 
+# ?....ooo     seal the opponent!
+# OO...ooo
+# X*...ooo
+# ........
+# ........
+# --------
+# 
+# :8,-,value(22)
 
 
 Pattern EJ37
@@ -12130,6 +12195,7 @@
 
 Pattern EJ39
 # sometimes the solid connection would be better
+# gf Removed fixed value, added d classification. (3.5.2)
 
 ?.XX.O       draw back to defend
 .O.O*.
@@ -12137,7 +12203,7 @@
 ......
 ------
 
-:8,-,value(30)
+:8,d
 
 ?.XX.O
 .O.O*.
@@ -12208,6 +12274,7 @@
 
 
 Pattern EJ44
+# gf Reduced shape value. (3.5.2)
 
 ......        almost an antisuji
 oO.X..
@@ -12216,7 +12283,7 @@
 ......
 ------
 
-:8,-,shape(-5)
+:8,-,shape(-3)
 
 
 Pattern EJ45
@@ -12552,7 +12619,8 @@
 ; !critical(A)
 
 
-Pattern EJ62
+Pattern EJ62a
+# gf Split and revised. (3.5.2)
 
 XX...       push to expand threatened dragon
 OOX..
@@ -12560,18 +12628,39 @@
 .....
 -----
 
-:8,J
+:8,OJ
 
 XX...
-AAX..
+aaX..
 ..*..
 .....
 -----
 
-; owl_threatens(*,A)||critical(A)
+;owl_threatens(*,a)
 
 
-Pattern EJ63
+Pattern EJ62b
+# gf Split and revised. (3.5.2)
+
+XX...       push to expand threatened dragon
+OOX..
+..*..
+.....
+-----
+
+:8,d,followup(8)
+
+XX...
+aaX..
+..*..
+.....
+-----
+
+;critical(a)
+
+
+Pattern EJ63a
+# gf Split and revised. (3.5.2)
 
 XX....      push again to expand threatened dragon
 OOXX..
@@ -12582,12 +12671,32 @@
 :8,J
 
 XX....
-AAXX..
+aaXX..
+..O*..
+......
+------
+
+;owl_threatens(*,a)
+
+
+Pattern EJ63
+# gf Split and revised. (3.5.2)
+
+XX....      push again to expand threatened dragon
+OOXX..
+..O*..
+......
+------
+
+:8,d,followup(8)
+
+XX....
+aaXX..
 ..O*..
 ......
 ------
 
-; owl_threatens(*,A)||critical(A)
+;critical(a)
 
 
 Pattern EJ64
@@ -13736,7 +13845,7 @@
 ######################################################################
 
 Pattern Reinforce102
-# This pattern should be contingent on being clearly ahead.
+# FIXME: This pattern should be contingent on being clearly ahead.
 
 .......
 O..O..O     Eliminate invasion point
@@ -13771,6 +13880,7 @@
 
 
 Pattern LE2
+# gf Added e classification. (3.5.2)
 
 ?????     third line sente kosumi
 O.Xxx
@@ -13778,10 +13888,11 @@
 .....
 -----
 
-:8,OX
+:8,OXe
 
 
 Pattern LE3
+# gf Added e classification. (3.5.2)
 
 xXx       expand territory
 ...
@@ -13789,26 +13900,28 @@
 O..
 o..
 
-:8,OX
-
-
-Pattern LE4
-# gf Revised constraint. (3.1.9)
-
-...      hane to prevent incursion
-.*o
-OX?
-
-:8,OX,value(12)
+:8,OXe
 
-.a.
-b*o
-OC?
 
-;omoyo(a) && oplay_attack(*,b,b) && !(attack(C) && oplay_defend(*,C))
+# Pattern LE4
+# # gf Revised constraint. (3.1.9)
+# # gf Removed. (3.5.2)
+# 
+# ...      hane to prevent incursion
+# .*o
+# OX?
+# 
+# :8,OX,value(12)
+# 
+# .a.
+# b*o
+# OC?
+# 
+# ;omoyo(a) && oplay_attack(*,b,b) && !(attack(C) && oplay_defend(*,C))
 
 
 Pattern LE5
+# gf Added e classification and constraint. (3.5.2)
 
 ?Xxx
 O...
@@ -13816,7 +13929,15 @@
 ....
 ----
 
-:8,OX
+:8,OXe
+
+?Xxx
+ca..
+.b*.
+....
+----
+
+;!oplay_disconnect(*,a,b,*,c)
 
 
 Pattern LE6
@@ -13843,23 +13964,18 @@
 
 
 Pattern LE8
+# gf Changed fixed value to e classification, removed constraint. (3.5.2)
 
 ?OOo        prevent monkey jump
 X*..
 ....
 ----
 
-:8,OX,value(8)
-
-?OOo
-X*.a
-....
-----
-
-; omoyo(a)
+:8,OXe
 
 
 Pattern LE9
+# gf Added e classification. (3.5.2)
 
 oo..?       good local sente
 ..O.x
@@ -13868,7 +13984,7 @@
 .....
 -----
 
-:8,OX
+:8,OXe
 
 
 Pattern LE10
@@ -13886,34 +14002,30 @@
 ;&& safe_omove(*) && oplay_attack_either(*,A,B)
 
 
-Pattern LE11
-
-...       jump towards the opponent's territory
-.*.
-...
-.O?
-
-:8,O
+# Pattern LE11
+# gf Removed ineffective pattern. (3.5.2)
+# 
+# ...       jump towards the opponent's territory
+# .*.
+# ...
+# .O?
+# 
+# :8,O
 
 
 Pattern LE12
+# gf Changed fixed value to e classification, removed constraint. (3.5.2)
 
 ?O..    seal the edge
 X*..
 ....
 ----
 
-:8,OX,value(10)
-
-?O.a
-X*..
-....
-----
-
-; omoyo(a)
+:8,OX
 
 
 Pattern LE13
+# gf Changed fixed value to e classification, added reverse followup. (3.5.2)
 
 |??o?        take the corner
 |...O
@@ -13922,7 +14034,7 @@
 |....
 +----
 
-:8,OX,value(15)
+:8,OXe,reverse_followup(5)
 
 |??o?
 |..aO
Index: patterns/patterns2.db
===================================================================
RCS file: /cvsroot/gnugo/gnugo/patterns/patterns2.db,v
retrieving revision 1.65
diff -u -r1.65 patterns2.db
--- patterns/patterns2.db       24 Oct 2003 09:36:08 -0000      1.65
+++ patterns/patterns2.db       28 Oct 2003 20:17:17 -0000
@@ -1172,13 +1172,14 @@
 #  --------
 #
 # descending is the *only* move to live. So this should not be an antisuji.
+# gf Reduced shape value. (3.5.2)
 
 ?XO     don't defend by moving straight down if it gives X a free forcing move
 XO.
 .*.
 ---
 
-:8,-,shape(-5)
+:8,-,shape(-3)
 
 ?XO
 Xb.
@@ -1381,12 +1382,13 @@
 
 
 Pattern Shape5
+# gf Reduced shape value. (3.5.2)
 
 ?O.O     protect against atari or threat to atari
 ?.OX
 ?*XX
 
-:8,-,shape(4)
+:8,-,shape(3)
 
 
 Pattern Shape6
@@ -1579,12 +1581,13 @@
 
 
 Pattern Shape12b
+# gf Reduced shape value. (3.5.2)
 
 ..x     Don't push from behind with few liberties if we have to bend after hane
 .*X
 .OX
 
-:8,-,shape(-5)
+:8,-,shape(-3)
 
 bax
 .*C
@@ -1596,12 +1599,13 @@
 Pattern Shape13
 # Such huge shape values can cause problems. See handtalk12.sgf, move 37
 # (where * is actually an owl defense). -Arend
+# gf Reduced shape value. (3.5.2)
 
 ?X?     don't set up double cut
 *.O
 .O.
 
-:8,-,shape(-10)
+:8,-,shape(-3)
 
 ?X?
 *aB
@@ -1738,6 +1742,7 @@
 
 Pattern Shape20
 # delta_moyo currently overvalues this move, so we compensate here
+# gf Reduced shape value. (3.5.2)
 
 XO.     bad aji
 O..
@@ -1745,7 +1750,7 @@
 ...
 ---
 
-:8,-,shape(-5)
+:8,-,shape(-3)
 
 
 Pattern Shape21
@@ -1798,13 +1803,14 @@
 
 
 Pattern Shape25
+# gf Reduced shape value. (3.5.2)
 
 ...x
 .*.X     Don't cap with weak stone that can be cut off.
 ....
 xx.O
 
-:8,-,shape(-5)
+:8,-,shape(-3)
 
 ...x
 .*.X
@@ -2087,13 +2093,14 @@
 
 
 Pattern Shape46
+# gf Reduced shape value. (3.5.2)
 
 ?XXO    blocking one step to the left usually much superior
 .O.*
 ....
 ----
 
-:8,-,shape(-5)
+:8,-,shape(-3)
 
 ?XXb
 .Oa*
@@ -2209,12 +2216,13 @@
 
 
 Pattern Shape55
+# gf Reduced shape value. (3.5.2)
 
 O.      don't force opponent to cut
 X.
 .*
 
-:8,-,shape(-5)
+:8,-,shape(-3)
 
 a.
 X.
@@ -2258,13 +2266,14 @@
 
 
 Pattern Shape59
+# gf Reduced shape value. (3.5.2)
 
 ?X.O         usually stupid, other atari or descent generally better
 XOXO
 ..*.
 ----
 
-:8,-,shape(-5)
+:8,-,shape(-3)
 
 
 Pattern Shape60
@@ -2447,13 +2456,14 @@
 
 Pattern Shape72
 # gf New pattern. (3.1.14)
+# gf Reduced shape value. (3.5.2)
 
 ?XO.     don't leave double threat behind
 XO..      
 *...
 ----
 
-:8,-,shape(-4)
+:8,-,shape(-3)
 
 ?Xc.
 Xba.
@@ -2530,13 +2540,14 @@
 
 Pattern Shape76
 # tm New Pattern. (3.1.16) (see trevor:220)
+# gf Reduced shape value. (3.5.2)
 
 ----
 ....
 ....
 O.*.
 
-:8,-,shape(-4)
+:8,-,shape(-3)
 
 ----
 ....
Index: regression/nngs3.tst
===================================================================
RCS file: /cvsroot/gnugo/gnugo/regression/nngs3.tst,v
retrieving revision 1.54
diff -u -r1.54 nngs3.tst
--- regression/nngs3.tst        15 Oct 2003 18:45:31 -0000      1.54
+++ regression/nngs3.tst        28 Oct 2003 20:17:17 -0000
@@ -364,7 +364,7 @@
 
 
 loadsgf games/nngs/Lazarus-gnugo-3.2-200205011927.sgf 86
-800 reg_genmove black
+800 restricted_genmove black J5 H5 G4 H4 J4 G6 G3 H3 J3 K3
 #? [G4]
 
 




reply via email to

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