Skip to content

Template project for building a bot using the StarCraft II C++ Client API

License

Notifications You must be signed in to change notification settings

herodrigues/sc2_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Template project for building a bot using the StarCraft II C++ Client API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published