Skip to content
Template project for building a bot using the StarCraft II C++ Client API
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
s2client-api @ d9ba0a3
src
.gitignore
.gitmodules
CMakeLists.txt
LICENSE
README.md

README.md

sc2_bot

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.

Requirements

Download an install:

Linux

  • make library.

OS X

  • XCode command line tools.

Windows

Installation

Windows

$ git clone --recursive https://github.com/herodrigues/sc2_bot.git
$ cd sc2_bot
$ mkdir build 
$ cd build
$ cmake ../ -G "Visual Studio 15 2017 Win64"
$ start sc2_bot.sln

Linux and OS X

$ 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>

Updating s2client-api

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
You can’t perform that action at this time.