Welcome to PiG_Bot, the example bot showcased in the "Bits of Code" series! This bot is designed as a starting point for those looking to dive into the world of AI bot development in StarCraft II using the Python-SC2 framework.
PiG_Bot was featured in an episode of "Bits of Code," which you can watch here. The episode walks you through the bot's strategy of mimicking the StarCraft commentator/player PiG, using his Bronze to GM strategies.
PiG_Bot's strategy is inspired by PiG's Bronze to GM series:
- Mimic PiG's strategies and decision-making processes.
- Adapt to various in-game situations using pre-defined strategies.
You can deconstruct PiG_Bot or modify it as you wish
- Clone the repository:
git clone --recursive <your_git_repo_home_url_here>
- Navigate to the root folder:
cd <bot_folder>
- Install Poetry:
poetry install
- If you have a non-standard StarCraft 2 installation or are using Linux, adjust
MAPS_PATH
inrun.py
. - Run PiG_Bot in a StarCraft II AI match:
poetry run python run.py
You can get the original template from ProBotsAI/python-sc2-bot-template.
This project is released under the MIT License.