facebook twitter hatena line email

「将棋プログラム/技巧」の版間の差分

提供: 初心者エンジニアの簡易メモ
移動: 案内検索
行1: 行1:
 +
(自分用メモ:dockerのweb2:/var/www/Gikouで実行)
  
 
==技巧インストール==
 
==技巧インストール==

2017年8月3日 (木) 05:07時点における版

(自分用メモ:dockerのweb2:/var/www/Gikouで実行)

技巧インストール

$ git clone https://github.com/gikou-official/Gikou.git
$ make release
$ ls -ltA bin/release
> bin/release

makeでmake[1]: *** [obj/release/src/bitboard.o] Error 1となる場合

$ vi /etc/apt/sources.list
deb http://ftp.debian.org/debian jessie-backports main
deb http://http.debian.net/debian jessie main
$ sudo apt-get update
$ apt-get install gcc
$ gcc -v
> gcc version 4.9.2 (Debian 4.9.2-10)
$ apt-get install g++
$ g++ -v
> gcc version 4.9.2 (Debian 4.9.2-10)

技巧学習

./bin/release --learn-progress

技巧バイナリ追加

$ wget https://github.com/gikou-official/Gikou/archive/v2.0.2.tar.gz
tar zxvf v2.0.2.tar.gz
bin/releaseと同じdirへ回答したファイルを移動

unzipインストール

apt-get install unzip

monoインストール

apt-get install -y mono-complete

将棋所インストール

wget http://shogigui.siganus.com/shogigui/ShogiGUIv0.0.6.11.zip
unzip ShogiGUIv0.0.6.11.zip
mono ShogiGUIv0.0.6.11/ShogiGUI.exe
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.XplatUI ---> System.ArgumentNullException: Could not open display (X-Server required. Check you DISPLAY environment variable)
Parameter name: Display

エラーとなる・・・。