Skip to content

SparCraft Windows Bot Compilation

David Churchill edited this page Feb 29, 2016 · 5 revisions

It is quite easy to use SparCraft in your own bot! You can simply link it to your existing bot, or you can compile it yourself.

If you want to learn more about integrating AI systems into BWAPI bots, you can read our AIIDE 2012 paper:

Headers

To use SparCraft, you must include its headers. Make sure your project includes the SparCraft/source directory, and from within your program use the following:

#include "SparCraft.h"

Compiling - Prerequisites

To compile SparCraft as a standalone Windows exe, you must have the following:

Compiling - Step By Step Instructions

To build SparCraft.lib:

  1. Install Visual Studio 2013
  2. Set BWAPI_DIR environment variable to your BWAPI folder
  3. Launch Visual Studio 2013
  4. Open SparCraft/VisualStudio/SparCraft.sln
  5. Change Configuration to Release (if it isn't already)
  6. Build SparCraft project (creates SparCraft.lib)
  7. Build your bot while linking to SparCraft.lib