herodrigues / sc2_bot

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:C++ 65.3%Language:CMake 34.7%