StarCraft II API template bot using SC2 Client API (C++). There is nothing important implemented in the bot code, it's just a template project with the s2client-api as git submodule using CMake.
Download an install:
make
library.
- XCode command line tools.
Community version is free and it works too
$ git clone --recursive https://github.com/herodrigues/sc2_bot.git
$ cd sc2_bot
$ mkdir build
$ cd build
$ cmake ../ -G "Visual Studio 16 2019"
$ start sc2_bot.sln
$ git clone --recursive https://github.com/herodrigues/sc2_bot.git
$ cd sc2_bot
$ mkdir build && cd build
# Use 'cmake -DCMAKE_BUILD_TYPE=Debug ../' to display debug information
$ cmake ../
$ make
$ ./bin/sc2_bot -e <path-to-sc2-executable>
In order to have the latest commits, you'll need to regularly perform a recursive update on the s2client-api library.
git submodule update --init --recursive
git submodule foreach --recursive git fetch
git submodule foreach git merge origin master