Python library for StarCraft II
“An easy-to-use library for writing AI Bots for StarCraft II in Python 3. The ultimate goal is simplicity and ease of use, while still preserving all functionality. A really simple worker rush bot should be no more than twenty lines of code, not two hundred. However, this library intends to provide both high and low level abstractions.”
You can find how to install in the previous link.
About this tutorial
I structured this tutorial in several parts. From the beginning to the end it adds more and more things your bot can do. Every chapter will add a new functionality and when you finish your (Terran) bot, it will have a basic behaviour: gather, build an army, attack.
This tutorial has two parts to get you started on programming a StarCraft II Bot using python libraries and the StarCraft II game.
The structure is the next:
- 0. This introduction
- 1. Gathering resources
- 2. Building units
In the beginning of every chapter you’ll find a Base Script for you to start your code.
Starcraft Race of the bot
More about races: https://starcraft.fandom.com/wiki/Category:Races