Skip to content

poiriermike/battlesnake-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

battlesnake-go

A simple BattleSnake AI written in Go.

Available at http://battlesnake-go.herokuapp.com.

To get started, you'll need:

  1. Setup your Go development environment (guide).
  2. Install Godep.

Deploy

Running the AI locally

  1. Fork and clone this repo.
cd $GOPATH/github.com/sendwithus/battlesnake-go
git clone git@github.com:sendwithus/battlesnake-go.git
cd battlesnake-go
  1. Load dependencies.
godep restore
  1. Compile the battlesnake-go server.
go build

This will create a battlesnake-go executable.

  1. Run the server.
./battlesnake-go
  1. Test the client in your browser: http://127.0.0.1:9000

Deploying to Heroku

  1. Save godep dependencies:
godep save
git add .
git commit -m "save godependencies"
  1. Create a new Go Heroku app using Go buildpack.
heroku create [APP_NAME] --buildpack https://github.com/kr/heroku-buildpack-go
  1. Push code to Heroku servers.
git push heroku master
  1. Open Heroku app in browser.
heroku open

Or go directly via http://APP_NAME.herokuapp.com

  1. View/stream server logs.
heroku logs --tail

Questions?

Email, Twitter

About

A Simple BattleSnake AI Written in Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages