1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# This is GNU Go, a Go program. Contact gnugo@gnu.org, or see #
# http://www.gnu.org/software/gnugo/ for more information. #
# #
# Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, #
# 2008 and 2009 by the Free Software Foundation. #
# #
# This program is free software; you can redistribute it and/or #
# modify it under the terms of the GNU General Public License #
# as published by the Free Software Foundation - version 3, #
# or (at your option) any later version. #
# #
# This program is distributed in the hope that it will be #
# useful, but WITHOUT ANY WARRANTY; without even the implied #
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR #
# PURPOSE. See the GNU General Public License in file COPYING #
# for more details. #
# #
# You should have received a copy of the GNU General Public #
# License along with this program; if not, write to the Free #
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, #
# Boston, MA 02111, USA. #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#
# attack.db - pattern database for finding tactical attack moves
#
# The tactical reading functions try to capture by attacking
# on the immediate liberties plus certain caps and backfilling
# moves. This database is intended to find additional attacking
# moves. Notice though that these patterns doesn't help the
# tactical reading to find attacking moves later in a move
# sequence but only at stackp=0.
#
# See patterns.db for a specification of the current database format.
#
# Since these patterns are matched during make_worms() it doesn't
# make any sense to use classifications such as X and O. No other
# classification is useful either except A since we only have
# tactical attack moves here.
#
# The semantics of these patterns are that the move at * is tried as
# an attack of each X string in the pattern. The patterns are matched
# with either player as O.
#
##################################################################
attribute_map none
goal_elements none
callback_data X
Pattern Attack1
# Even if a ladder works (and is found by the tactical reading) we
# also want to consider the geta capture.
XOO? capture one stone
OX..
O.*?
?.??
:8,A
Pattern Attack2
OOXX push to capture X
.XO*
....
----
:8,A
Pattern Attack4
*OX extend to kill
.XO
:8,A
Pattern Attack5
|.X
|XO
|*.
|.X
:8,A
Pattern Attack6
?X block to attack and defend
?O
X*
O.
:8,A
Pattern Attack10
?O. common geta
OX.
O.*
?.?
:8,A
Pattern Attack11
o..?? catch two stones in a net
O.*.?
?X..o
?X.oo
??O??
:8,A
Pattern Attack13
----
....
X...
O*.O
:8,A
Pattern Attack14
?.? Sometimes better to capture indirectly
*.O
OXO
?O?
:8,A
Pattern Attack15
XOX Capture one step away
X.*
---
:8,A,NULL
AOX
A.*
---
; lib(A)==1
Pattern Attack16
?*X? Capture with snapback
O.OX
?XX?
:8,A
?*X?
b.OX
?AA?
;lib(A)==1 && olib(*)>1 && lib(b)>1
Pattern Attack17
# This is only intended for finding an alternative attack. It should
# have a constraint to first check whether the move above * was
# successful.
# FIXME: Add necessary machinery for this.
?X?
O.O
?*o
:8,A
Pattern Attack18
# gf New pattern. (3.3.4)
OX
O.
X*
--
:8,A
Pattern Attack19
# pp New pattern (3.3.18)
*.O May be better to capture indirectly
O.X
..O
:8,A
*.O
O.A
..O
; lib(A) == 1
# END OF FILE
|