A simple BattleSnake AI written in Go.
Available at http://battlesnake-go.herokuapp.com.
To get started, you'll need:
- Fork and clone this repo.
cd $GOPATH/github.com/sendwithus/battlesnake-go
git clone [email protected]:sendwithus/battlesnake-go.git
cd battlesnake-go
- Load dependencies.
godep restore
- Compile the battlesnake-go server.
go build
This will create a battlesnake-go
executable.
- Run the server.
./battlesnake-go
- Test the client in your browser: http://127.0.0.1:9000
- Save godep dependencies:
godep save
git add .
git commit -m "save godependencies"
- Create a new Go Heroku app using Go buildpack.
heroku create [APP_NAME] --buildpack https://github.com/kr/heroku-buildpack-go
- Push code to Heroku servers.
git push heroku master
- Open Heroku app in browser.
heroku open
Or go directly via http://APP_NAME.herokuapp.com
- View/stream server logs.
heroku logs --tail