Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chippydip/go-sc2ai
Go version of the Starcraft II AI API
https://github.com/chippydip/go-sc2ai
Last synced: 3 months ago
JSON representation
Go version of the Starcraft II AI API
- Host: GitHub
- URL: https://github.com/chippydip/go-sc2ai
- Owner: chippydip
- License: mit
- Created: 2018-10-25T06:42:15.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-11T22:23:09.000Z (over 1 year ago)
- Last Synced: 2024-06-19T00:59:32.595Z (5 months ago)
- Language: Go
- Size: 691 KB
- Stars: 24
- Watchers: 9
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-sc2-ai - go-sc2ai
- awesome-starcraft2 - go-sc2ai - A go wrapper around the Starcraft 2 C++ api. (Software Packages)
README
# go-sc2ai
Go implementation of the Starcraft II AI API
## Quick start
### Prerequisites
- Install golang >= 1.13
https://golang.org/dl/
- Install Starcraft II game
https://starcraft2.com/en-us/ (free version is okay)
- Download Ladder
- Join Discord messenger: https://discordapp.com/invite/Emm5Ztz
- Use `!maps` command to get archive link
- Download, unpack and copy files into Starcraft II `Maps` folder (e.g. `C:/Program Files (x86)/StarCraft II/Maps`)### Build and run examples
- Create working dir:
```bash
mkdir /path/godev
cd /path/godev/
```
- Clone project:
```bash
git clone [email protected]:chippydip/go-sc2ai.git
cd go-sc2ai/
```
- Build and run example:
```bash
go run .\examples\zerg_rush
```## Start writing your own bot
- Make project dir:
```bash
mkdir /path/mycoolbot
cd /path/mycoolbot/
go mod init bot
go get -u github.com/chippydip/go-sc2ai
```
- Copy `main.go` from `examples/stub_bot` into your project dir
- Build and run
```bash
go run .
```
- Add some cool new stuff
- Build > Run > Test > Repeat
- ???
- PROFIT## Useful links
- Get help in Discord: https://discord.gg/Emm5Ztz
- Learn golang: https://tour.golang.org/
- Starcraft II AI Wiki: http://wiki.sc2ai.net/Main_Page
- More maps: https://github.com/ttinies/sc2gameMapRepo