s2client-api icon indicating copy to clipboard operation
s2client-api copied to clipboard

Human vs Bot

Open jerrygreen opened this issue 3 years ago • 1 comments

I know it's possible to run Bot vs Bot simulations, but how can I play against custom bots myself? Currently, I can only play versus default SC2 AI, and that's unfortunate, because there's so many interesting options out there :(

I can tell that by seeing such services like:

  • https://aiarena.net/
  • https://sc2ai.net/

The last one has some software to support playing against bots (https://sc2ai.net/Human.php), but unfortunately it's not documented at all, so nobody can tell how to do that actually. Related topics on reddit:

  • https://www.reddit.com/r/sc2ai/comments/jx6c18/how_to_play_v_bots/
  • https://www.reddit.com/r/sc2ai/comments/6z9h0y/how_to_play_against_the_commandcenterbased_bot/

Is there a way to play against bots?

jerrygreen avatar Jan 09 '21 08:01 jerrygreen

Q: Is there a way to play against bots?

https://github.com/Blizzard/s2client-api/blob/master/examples/bot_mp.cc

9    // Set this flag to true if you want to play against your bot.
10  static bool PlayerOneIsHuman = false;

Lines 26 through 38 also are part of it.

Nickrader avatar Aug 30 '21 02:08 Nickrader