Skip to content

chippydip/go-sc2ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-sc2ai

Go implementation of the Starcraft II AI API

Quick start

Prerequisites

Build and run examples

  • Create working dir:
    mkdir /path/godev
    cd /path/godev/
  • Clone project:
    git clone [email protected]:chippydip/go-sc2ai.git
    cd go-sc2ai/
  • Build and run example:
    go run .\examples\zerg_rush

Start writing your own bot

  • Make project dir:
    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
    go run .
  • Add some cool new stuff
  • Build > Run > Test > Repeat
  • ???
  • PROFIT

Useful links