ゲームAI備忘録

ゲームAIに使えそうな知識を備忘録として書き留める

人助けと思って何卒インストールをば! 詰碁/ アルコネ/ 五目並べ

MacへのGoGuiとFuego, GnuGoのインストール方法

インストール方法

Macでは,BrewのFormulaとして,GoGui, Fuego, Gnugoが入っているため,下記コマンドでインストールできます.

$ brew tap homebrew/games
$ brew install go-gui
$ brew install fuego
$ brew install gnu-go

Fuego実行例

$ fuego
Fuego 1.1.SVN
Copyright (C) 2009-2014 by the authors of the Fuego project.
This program comes with ABSOLUTELY NO WARRANTY. This is
free software and you are welcome to redistribute it under
certain conditions. Type `fuego-license' for details.

SgRandom::SetSeed: 1438640386
SgUctSearch: system memory 2147483648, using 1000000000 (6250000 nodes)
GoUctFeatureKnowledgeFactory Read weights for 2200 features with k = 10, minID = 0, maxID = 2153
GoUctGlobalSearch: setting default number of threads to 4
Loading opening book from '/private/tmp/fuego20150804-16832-u9j6em/book/book.dat'... not found
Loading opening book from 'book.dat'... not found
Loading opening book from '/usr/local/Cellar/fuego/1.1.SVN/share/fuego/book.dat'... ok

boardsize 9
GoUctPlayer: Setting default parameters for size 9
= 

genmove b
GoGtpEngine: Using move from opening book
= E5

genmove w
GoGtpEngine: Using move from opening book
= D3

Gnugo実行例

$ gnugo 
GNU Go 3.8
Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
2008 and 2009 by the Free Software Foundation, Inc.
See http://www.gnu.org/software/gnugo/ or contact
gnugo@gnu.org for information about GNU Go. GNU Go comes with NO WARRANTY to
the extent permitted by law. 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. For more
information about these matters, see the files named COPYING.

Beginning ASCII mode game.

Board Size:   19
Handicap      0
Komi:         0.0
Move Number:  0
To Move:      black
Computer player: White

    White (O) has captured 0 pieces
    Black (X) has captured 0 pieces

    A B C D E F G H J K L M N O P Q R S T
 19 . . . . . . . . . . . . . . . . . . . 19
 18 . . . . . . . . . . . . . . . . . . . 18
 17 . . . . . . . . . . . . . . . . . . . 17
 16 . . . + . . . . . + . . . . . + . . . 16
 15 . . . . . . . . . . . . . . . . . . . 15
 14 . . . . . . . . . . . . . . . . . . . 14
 13 . . . . . . . . . . . . . . . . . . . 13
 12 . . . . . . . . . . . . . . . . . . . 12
 11 . . . . . . . . . . . . . . . . . . . 11
 10 . . . + . . . . . + . . . . . + . . . 10
  9 . . . . . . . . . . . . . . . . . . .  9
  8 . . . . . . . . . . . . . . . . . . .  8
  7 . . . . . . . . . . . . . . . . . . .  7
  6 . . . . . . . . . . . . . . . . . . .  6
  5 . . . . . . . . . . . . . . . . . . .  5
  4 . . . + . . . . . + . . . . . + . . .  4
  3 . . . . . . . . . . . . . . . . . . .  3
  2 . . . . . . . . . . . . . . . . . . .  2
  1 . . . . . . . . . . . . . . . . . . .  1
    A B C D E F G H J K L M N O P Q R S T

black(1): Q16