Skip to content

Instantly share code, notes, and snippets.

これは aws のインスタンスを使用して対戦させた時のメモです。
開発者のかたがたは、自身のプログラムを確認する為のフレームワークを持っているようなのですが、その環境を用意するとかはツライので、Ubuntu 16.04 LTS に shogi-server を入れて勝ち負けを出すとこまでのメモです。

エンジンや評価関数ファイル等は用意してあり動作することを前提として記述します。
#特殊なことがあれば追記しますが、Linux で build できるエンジンであれば大丈夫なはずです。

Windows の便利な GUI クライアントでどうこうするのではなく、黒い画面でネットワーク越しに対戦させる方の話です。
とりあえず aws 上で試す場合、 r3.large が良いかんじです。(USIエンジンを二つ動かすにはメモリが必要なので。。)

diff -Nurb -i --strip-trailing-cr -Nur a/shogi-server/bin/run.sample b/shogi-server/bin/run.sample
--- a/shogi-server/bin/run.sample 1970-01-01 09:00:00.000000000 +0900
+++ b/shogi-server/bin/run.sample 2017-07-06 11:34:36.893489555 +0900
@@ -0,0 +1,45 @@
+#!/bin/bash
+# nohup sh ./run test01 0 3 test01 > /dev/null 2>&1 &
+
+if [ $# -ne 4 ]; then
+ echo 'param error'
+ echo '{this script} game-tag lifetime countdown username'
diff --git a/source/Makefile b/source/Makefile
index 82f12fc..60ff9bf 100644
--- a/source/Makefile
+++ b/source/Makefile
@@ -97,6 +97,7 @@ SOURCES = shogi.cpp \
usi.cpp \
thread.cpp \
tt.cpp \
+ progress.cpp \
extra/book/apery_book.cpp \