Skip to content

aiwolfdial/AIWolfNLGameServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AIWolfNLPServer

人狼知能大会自然言語部門向けのリモート対戦接続システムです。英語の説明の後に、同じ内容で日本語の説明があります。 人狼知能自然言語部門2024国内大会については https://sites.google.com/view/aiwolfdial2024jp に説明があります。先にお読みください。 Pythonサンプルエージェントコードと、エージェントをリモート待ち受け状態にするリモートラッパーのコードは AIWolfNLGameServer にあります。

Overview

This program is a battle system developed for developers to engage in self-play locally.

Requirement

The following are the necessary environment requirements for executing the program.

  • Java17

Settings

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.

Execution procedure for self-play method

  1. Start the agent program and begin listening.
    The sample agent is prepared for use with AIWolfNLAgentPython

  2. Specify the listening IP and PORT of the agent for res/AIWolfGameServer.ini

  3. 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: 対戦プログラムが参加者のプログラムへ接続しに行く

自己対戦方法の実行方法

  1. エージェントプログラムを起動し待ち受けを開始する。
    サンプルエージェントはAIWolfNLAgentPythonに用意してあります。

  2. res/AIWolfGameServer.iniにエージェントの待ち受けIP,PORTを指定する。

  3. 以下のコマンドで対戦プログラムを実行する。

    $ 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages