258 lines
3.0 KiB
Plaintext
258 lines
3.0 KiB
Plaintext
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|||
|
# 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. #
|
|||
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|||
|
#
|
|||
|
# This is an approximate adaptation to patterns of the simulation
|
|||
|
# policy for an early version of MoGo, as published in the report
|
|||
|
# "Modification of UCT with Patterns in Monte-Carlo Go", RR-6062, by
|
|||
|
# Sylvain Gelly, Yizao Wang, R<>mi Munos, and Olivier Teytaud.
|
|||
|
#
|
|||
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|||
|
|
|||
|
|
|||
|
|
|||
|
# Proper eyes.
|
|||
|
|
|||
|
oOo
|
|||
|
O*O
|
|||
|
oO?
|
|||
|
|
|||
|
:0
|
|||
|
|
|||
|
|
|||
|
oOo
|
|||
|
O*O
|
|||
|
---
|
|||
|
|
|||
|
:0
|
|||
|
|
|||
|
|
|||
|
|Oo
|
|||
|
|*O
|
|||
|
+--
|
|||
|
|
|||
|
:0
|
|||
|
|
|||
|
|
|||
|
# Run away from atari or capture near move.
|
|||
|
|
|||
|
?X?
|
|||
|
?*?
|
|||
|
???
|
|||
|
|
|||
|
:10000,ocap1+,osafe,near
|
|||
|
|
|||
|
?O?
|
|||
|
?*?
|
|||
|
???
|
|||
|
|
|||
|
:10000,xcap1+,osafe,near
|
|||
|
|
|||
|
|
|||
|
# 1. Patterns for hane.
|
|||
|
# 1.1 First figure.
|
|||
|
|
|||
|
XOX
|
|||
|
.*.
|
|||
|
???
|
|||
|
|
|||
|
:100,near
|
|||
|
|
|||
|
|
|||
|
OXO
|
|||
|
.*.
|
|||
|
???
|
|||
|
|
|||
|
:100,near
|
|||
|
|
|||
|
|
|||
|
# 1.2 Second figure.
|
|||
|
|
|||
|
XO.
|
|||
|
.*.
|
|||
|
?.?
|
|||
|
|
|||
|
:100,near
|
|||
|
|
|||
|
|
|||
|
OX.
|
|||
|
.*.
|
|||
|
?.?
|
|||
|
|
|||
|
:100,near
|
|||
|
|
|||
|
|
|||
|
# 1.3 Third figure.
|
|||
|
|
|||
|
XO?
|
|||
|
X*.
|
|||
|
?.?
|
|||
|
|
|||
|
:100,near
|
|||
|
|
|||
|
|
|||
|
OX?
|
|||
|
O*.
|
|||
|
?.?
|
|||
|
|
|||
|
:100,near
|
|||
|
|
|||
|
|
|||
|
# 1.4 Fourth figure.
|
|||
|
|
|||
|
OXX
|
|||
|
.*.
|
|||
|
?.?
|
|||
|
|
|||
|
:100,near
|
|||
|
|
|||
|
|
|||
|
# 2. Patterns for cut 1.
|
|||
|
|
|||
|
XO?
|
|||
|
O*X
|
|||
|
???
|
|||
|
|
|||
|
:100,near
|
|||
|
|
|||
|
|
|||
|
XO?
|
|||
|
O*O
|
|||
|
?O?
|
|||
|
|
|||
|
:100,near
|
|||
|
|
|||
|
|
|||
|
XO?
|
|||
|
O*.
|
|||
|
?.?
|
|||
|
|
|||
|
:100,near
|
|||
|
|
|||
|
|
|||
|
OX?
|
|||
|
X*.
|
|||
|
?.?
|
|||
|
|
|||
|
:100,near
|
|||
|
|
|||
|
|
|||
|
OX?
|
|||
|
X*X
|
|||
|
?X?
|
|||
|
|
|||
|
:100,near
|
|||
|
|
|||
|
|
|||
|
OX?
|
|||
|
X*.
|
|||
|
?.?
|
|||
|
|
|||
|
:100,near
|
|||
|
|
|||
|
|
|||
|
# 3. Patterns for cut 2.
|
|||
|
|
|||
|
?O?
|
|||
|
X*X
|
|||
|
ooo
|
|||
|
|
|||
|
:100,near
|
|||
|
|
|||
|
|
|||
|
?X?
|
|||
|
O*O
|
|||
|
xxx
|
|||
|
|
|||
|
:100,near
|
|||
|
|
|||
|
|
|||
|
# 4. Patterns on the edge.
|
|||
|
# 4.1 First figure.
|
|||
|
|
|||
|
O.?
|
|||
|
X*?
|
|||
|
---
|
|||
|
|
|||
|
:100,near
|
|||
|
|
|||
|
|
|||
|
X.?
|
|||
|
O*?
|
|||
|
---
|
|||
|
|
|||
|
:100,near
|
|||
|
|
|||
|
|
|||
|
# 4.2 Second figure.
|
|||
|
|
|||
|
XO?
|
|||
|
x*?
|
|||
|
---
|
|||
|
|
|||
|
:100,near
|
|||
|
|
|||
|
|
|||
|
?X?
|
|||
|
O*o
|
|||
|
---
|
|||
|
|
|||
|
:100,near
|
|||
|
|
|||
|
|
|||
|
# 4.3 Third figure.
|
|||
|
|
|||
|
XO?
|
|||
|
?*?
|
|||
|
---
|
|||
|
|
|||
|
:100,near
|
|||
|
|
|||
|
|
|||
|
# 4.4 Fourth figure.
|
|||
|
|
|||
|
OX?
|
|||
|
o*?
|
|||
|
---
|
|||
|
|
|||
|
:100,near
|
|||
|
|
|||
|
|
|||
|
# 4.5 Fifth figure.
|
|||
|
|
|||
|
?XO
|
|||
|
O*X
|
|||
|
---
|
|||
|
|
|||
|
:100,near
|
|||
|
|
|||
|
|
|||
|
# Default value.
|
|||
|
|
|||
|
???
|
|||
|
?*?
|
|||
|
???
|
|||
|
|
|||
|
:1
|
|||
|
|