暴雪给策略性即时战略游戏放出了一些接口以用来让开发者研究沙盘推演 AI。老早以前的了。今天想着试一试接口,但是下载好游戏玩了一天,晚上才开始搭环境。哈哈哈哈哈
https://github.com/Blizzard/s2client-proto#downloads
https://github.com/deepmind/pysc2
放入 /Applications/StarCraft\ II/Maps
中
export SC2PATH=/Applications/StarCraft\ II
pip3 install pysc2
python3 -m pysc2.bin.agent --map Simple64