rsbwapi is a Rust library for building artificial intelligence (AI) for the popular real-time strategy game Starcraft Broodwar. The library allows you to create and control Starcraft Broodwar bots through the Broodwar API (BWAPI).
If you're not familiar with BWAPI, it is a community-developed project that provides a C++ interface to interact with Starcraft Broodwar. You can find more information about BWAPI here.
To get started with rsbwapi, check out the documentation on docs.rs. Also check out the simple ExampleBot. Or take a look at my bot Styx2.
You may want to join the SSCAIT Discord, which is a community of Starcraft AI enthusiasts who run regular bot tournaments. You can also check out the Basil Ladder which is based on SSCAIT but runs a lot more games.
For more information on Starcraft AI development, you can visit the SSCAIT website. There should be enough information to get you started.
If you have any questions or feedback, feel free to create an issue on the rsbwapi GitHub repository.
You should be fine to just compile your bot. The resulting x64 executable should run fine in all current tournaments/ladders.
Note: These instructions will create a 32-bit executable. There are no 32-bit tournaments and the result is not a DLL, so you can choose to create a 64-bit executable.
Install support for the target:
rustup target add i686-pc-windows-gnu
Create the file '.cargo/config.toml':
[build]
target="i686-pc-windows-gnu"Follow the installation instructions for xwin: https://github.com/rust-cross/cargo-xwin
Create the file '.cargo/config.toml':
[build]
target="i686-pc-windows-msvc"
[target.i686-pc-windows-msvc]
linker = "lld"
rustflags = [
"-Lnative=/home/<youruser>/.xwin/crt/lib/x86",
"-Lnative=/home/<youruser/.xwin/sdk/lib/um/x86",
"-Lnative=/home/<youruser/.xwin/sdk/lib/ucrt/x86"
]
## Mac
It should work the same way as with Linux - but it's untested.