-
Notifications
You must be signed in to change notification settings - Fork 178
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:
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"
To compile SparCraft as a standalone Windows exe, you must have the following:
- Visual Studio 2013 (or 2013)
- BWAPI 4.1.2
To build SparCraft.lib
:
- Install Visual Studio 2013
- Set BWAPI_DIR environment variable to your BWAPI folder
- Launch Visual Studio 2013
- Open
SparCraft/VisualStudio/SparCraft.sln
- Change Configuration to
Release
(if it isn't already) - Build
SparCraft
project (createsSparCraft.lib
) - Build your bot while linking to
SparCraft.lib