sanderaido / go-battlesnake

An attempt at making a basic Battlesnake.io api server in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-battlesnake

A Battlesnake.io Snake AI server written in Go

Written for Battlesnake Snake API version 2018.03.beta (found at https://docs.battlesnake.com/snake-api)

Steps to run the AI locally (on Windows)

  1. Download and install Go (version 1.12) from https://golang.org/doc/install

  2. Clone repo to your GOPATH src folder:

    git clone https://github.com/sanderaido/go-battlesnake.git %GOPATH%/src/github.com/sanderaido/go-battlesnake
    
  3. Run the server with:

    go run github.com/sanderaido/go-battlesnake
    
  4. The AI is accessible at http://localhost:8080/

Run tests with

go test github.com/sanderaido/go-battlesnake/...

About

An attempt at making a basic Battlesnake.io api server in Go


Languages

Language:Go 100.0%