人狼知能大会自然言語部門向けのリモート対戦接続システムです。英語の説明の後に、同じ内容で日本語の説明があります。 人狼知能自然言語部門2024国内大会については https://sites.google.com/view/aiwolfdial2024jp に説明があります。先にお読みください。 Pythonサンプルエージェントコードと、エージェントをリモート待ち受け状態にするリモートラッパーのコードは AIWolfNLGameServer にあります。
This program is a battle system developed for developers to engage in self-play locally.
The following are the necessary environment requirements for executing the program.
- Java17
Please provide the connection information for res/AIWolfGameServer.ini
(...)
gameNum=2 ; Number of consecutive game plays
(...)
IsServerFlag = false ; Default to false recommended.
PlayerHost1=localhost ; The listening IP of Agent[01].
PlayerPort1=50000 ; The listening port of Agent[01].
PlayerHost2=localhost ; The listening IP of Agent[02].
PlayerPort2=50001 ; The listening port of Agent[02].
PlayerHost3=localhost ; The listening IP of Agent[03].
PlayerPort3=50002 ; The listening port of Agent[03].
PlayerHost4=localhost ; The listening IP of Agent[04].
PlayerPort4=50003 ; The listening port of Agent[04].
PlayerHost5=localhost ; The listening IP of Agent[05].
PlayerPort5=50004 ; The listening port of Agent[0].
- IsServerFlag
true: This program awaits participants.
false: This program will connect to the participant's program.
-
Start the agent program and begin listening.
The sample agent is prepared for use with AIWolfNLAgentPython -
Specify the listening IP and PORT of the agent for
res/AIWolfGameServer.ini
-
Execute the battle program with the following command.
$ make run
本プログラムは人狼知能大会自然言語部門参加者向けに、待ち受け済みエージェント間のリモート対戦を実現するための対戦接続プログラムです。 5体のエージェントに対応する、5つのIPアドレス+Port番号を指定することで対戦を実行します。
以下はプログラム実行に必要な環境です。
- Java17以上
res/AIWolfGameServer.ini
に接続先の情報を記載してください。
(...)
gameNum=2 ; 連続ゲーム回数
(...)
IsServerFlag = false ; 基本false推奨
PlayerHost1=localhost ; Agent[01]の待ち受けIP
PlayerPort1=50000 ; Agent[01]の待ち受けポート
PlayerHost2=localhost ; Agent[02]の待ち受けIP
PlayerPort2=50001 ; Agent[02]の待ち受けポート
PlayerHost3=localhost ; Agent[03]の待ち受けIP
PlayerPort3=50002 ; Agent[03]の待ち受けポート
PlayerHost4=localhost ; Agent[04]の待ち受けIP
PlayerPort4=50003 ; Agent[04]の待ち受けポート
PlayerHost5=localhost ; Agent[05]の待ち受けIP
PlayerPort5=50004 ; Agent[05]の待ち受けポート
- IsServerFlag
true: 対戦プログラムが参加者を待ち受ける
false: 対戦プログラムが参加者のプログラムへ接続しに行く
-
エージェントプログラムを起動し待ち受けを開始する。
サンプルエージェントはAIWolfNLAgentPythonに用意してあります。 -
res/AIWolfGameServer.ini
にエージェントの待ち受けIP,PORTを指定する。 -
以下のコマンドで対戦プログラムを実行する。
$ make run
運営に提出して頂く自己対戦の設定や本戦での設定については基本的に以下の設定例のようになります。ただし、本戦でgameNum
については参加者間のエージェントの対戦として十分な量のログを取ることができるだけの値に変更します。(gameNum
は当日の様子により左右されるため具体的な値については未定です。)
設定例
agentNum=5
connectAgentNum=5
only1AgentByIP=false
deleteConnectionTime=24
gameNum=1
maxTalk=10
maxTurn=20
parallel=5
timeout=6000000
saveLog=true
isLoop=true
continueException=true
isSingle=false