Skip to content

chengjt23/RL_Generals

Repository files navigation

Clone

git clone https://github.com/chengjt23/RL_Generals.git
cd RL_Generals
git submodule update --init --recursive

启动指令

docker 相关

按照网站 https://corsaircoalition.github.io/setup/上面的指示去做。

最后检查:

docker version
docker compose version

没有问题即可

跑第一个对局

# 开终端1
docker compose up
# 开终端2
docker compose run commander-cortex-1
# 开终端3
docker compose run commander-cortex-2

在终端看到两个UI即可,这个时候可以在网站上看到实时对战。

加载第一个策略:

# 开终端4
cd PyBot
python example_randombot.py -c ../config.pybot1.json
# 开终端5
cd PyBot
python example_flobot.py -c ../config.pybot2.json

这个时候已经给两个Bot加载了策略,再回到终端2和3,分别让机器人play,然后回到网页端,可以看到加载了策略的机器人的实时对战。

FAQ

1、为什么我启动了Bot但是在网页端的房间里面看不到?

建议检查一下网页链接,应该是:https://bot.generals.io/games/{your_customGameId}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages