A simple Battlesnake AI written in Go.
Visit https://github.com/battlesnakeio/community/blob/master/starter-snakes.md for API documentation and instructions for running your AI.
To get started, you'll need:
- A working Go development environment (guide).
- Read Heroku's guide to deploying Go apps
- Clone repo to your development environment:
git clone https://github.com/battlesnakeio/starter-snake-go.git $GOPATH/github.com/battlesnakeio/starter-snake-go
cd $GOPATH/github.com/battlesnakeio/starter-snake-go
- Compile and run the server with:
make run
- Test the client in your browser: http://127.0.0.1:9000/start
-
Push and Pull from your new repo
git remote set-url origin https://github.com/<your-username>/starter-snake-go
make test
Note: if you're missing any packages, use Make get
.
- Create a new Go Heroku app using Go buildpack.
heroku create
- 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