Blizzard / s2client-api

StarCraft II Client - C++ library supported on Windows, Linux and Mac designed for building scripted bots and research using the SC2API.
MIT License
1.66k stars 282 forks source link

Human vs Bot #333

Open jerrygreen opened 3 years ago

jerrygreen commented 3 years ago

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:

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:

Is there a way to play against bots?

Nickrader commented 3 years ago

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.