Commit | Line | Data |
---|---|---|
7eeb782e AT |
1 | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # |
2 | # This is GNU Go, a Go program. Contact gnugo@gnu.org, or see # | |
3 | # http://www.gnu.org/software/gnugo/ for more information. # | |
4 | # # | |
5 | # Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, # | |
6 | # 2008 and 2009 by the Free Software Foundation. # | |
7 | # # | |
8 | # This program is free software; you can redistribute it and/or # | |
9 | # modify it under the terms of the GNU General Public License # | |
10 | # as published by the Free Software Foundation - version 3, # | |
11 | # or (at your option) any later version. # | |
12 | # # | |
13 | # This program is distributed in the hope that it will be # | |
14 | # useful, but WITHOUT ANY WARRANTY; without even the implied # | |
15 | # warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR # | |
16 | # PURPOSE. See the GNU General Public License in file COPYING # | |
17 | # for more details. # | |
18 | # # | |
19 | # You should have received a copy of the GNU General Public # | |
20 | # License along with this program; if not, write to the Free # | |
21 | # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, # | |
22 | # Boston, MA 02111, USA. # | |
23 | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
24 | # | |
25 | # This is an approximate adaptation to patterns of the original | |
26 | # simulation policy of GNU Go's Monte Carlo code. | |
27 | # | |
28 | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
29 | ||
30 | # Proper eyes. | |
31 | ||
32 | oOo | |
33 | O*O | |
34 | oO? | |
35 | ||
36 | :0 | |
37 | ||
38 | oOo | |
39 | O*O | |
40 | --- | |
41 | ||
42 | :0 | |
43 | ||
44 | |Oo | |
45 | |*O | |
46 | +-- | |
47 | ||
48 | :0 | |
49 | ||
50 | ||
51 | # If the opponent played self-atari, with high probability capture. | |
52 | # This also applies to capturing out of recent atari on own stones. | |
53 | ||
54 | ?X% | |
55 | ?*% | |
56 | %%% | |
57 | ||
58 | :10000,ocap1,near,osafe | |
59 | :13000,ocap2,near | |
60 | :20000,ocap3,near | |
61 | ||
62 | ||
63 | # Extend out of recent atari. | |
64 | ||
65 | ?O% | |
66 | ?*% | |
67 | %%% | |
68 | ||
69 | :2000,xcap1,osafe,near | |
70 | :4000,xcap2,osafe,near | |
71 | :6000,xcap3,osafe,near | |
72 | ||
73 | ||
74 | # If the opponent might cut, connect or at least try to connect. | |
75 | # | |
76 | # oYo | |
77 | # o*o | |
78 | ||
79 | ?XO | |
80 | O*? | |
81 | %%% | |
82 | ||
83 | :1000,near,osafe | |
84 | ||
85 | ?X? | |
86 | O*O | |
87 | %%% | |
88 | ||
89 | :1000,near,osafe | |
90 | ||
91 | ?X| | |
92 | O*| | |
93 | %%% | |
94 | ||
95 | :1000,near,osafe | |
96 | ||
97 | OX| | |
98 | ?*| | |
99 | %%% | |
100 | ||
101 | :1000,near,osafe | |
102 | ||
103 | ||
104 | # If the opponent invited a cut, do cut. | |
105 | # | |
106 | # Y | |
107 | # o*O | |
108 | # X | |
109 | # | |
110 | ||
111 | ?X? | |
112 | o*O | |
113 | ?X? | |
114 | ||
115 | :400,near,osafe | |
116 | ||
117 | |X? | |
118 | |*O | |
119 | |X? | |
120 | ||
121 | :400,near,osafe | |
122 | ||
123 | ||
124 | # Crosscut. | |
125 | # | |
126 | # YO | |
127 | # o*X | |
128 | # o | |
129 | # | |
130 | ||
131 | ?XO | |
132 | o*X | |
133 | ?o? | |
134 | ||
135 | :100,near,osafe | |
136 | ||
137 | ?XO | |
138 | o*X | |
139 | --- | |
140 | ||
141 | :100,near,osafe | |
142 | ||
143 | |XO | |
144 | |*X | |
145 | +-- | |
146 | ||
147 | :100,near,osafe | |
148 | ||
149 | ||
150 | # Capturing stones is always fun. | |
151 | ||
152 | ?X% | |
153 | ?*% | |
154 | %%% | |
155 | ||
156 | :30,ocap1,far,osafe | |
157 | :40,ocap2,far | |
158 | :60,ocap3,far | |
159 | ||
160 | ||
161 | # Slightly prefer near moves. | |
162 | ||
163 | ??% | |
164 | ?*% | |
165 | %%% | |
166 | ||
167 | :3,near,osafe | |
168 | ||
169 | ||
170 | # Default move value. | |
171 | ||
172 | ??% | |
173 | ?*% | |
174 | %%% | |
175 | ||
176 | :1 |