How to run 4 player games locally?


#1

I think I’m missing something really obvious, but how can I test 4 player games in the batch file runner. I tried editing it but can’t find a way to make it do a 4 player game.


#2

just add two additional “python botname.py” to batch file


#3

That didn’t work. My bot is using Java but I added more “Java myBot” to the file and it didn’t change anything.


#4

Can you post the exact command you’re running?

If "java myBot" runs your bot, these commands should run a four player game:

on Windows:
halite.exe --replay-directory replays/ -vvv --width 32 --height 32 "java myBot" "java myBot" "java myBot" "java myBot"

on *nix:
./halite --replay-directory replays/ -vvv --width 32 --height 32 "java myBot" "java myBot" "java myBot" "java myBot"