Skip to content

Latest commit

 

History

History
60 lines (40 loc) · 1.53 KB

README.md

File metadata and controls

60 lines (40 loc) · 1.53 KB

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

Community version is free and it works too

Installation

Windows

$ 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

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