Skip to content

Instantly share code, notes, and snippets.

@matburt
Created August 30, 2014 15:56
Show Gist options
  • Select an option

  • Save matburt/1afa014001a6229f43c2 to your computer and use it in GitHub Desktop.

Select an option

Save matburt/1afa014001a6229f43c2 to your computer and use it in GitHub Desktop.
A Simple Go bot
package main
import (
"github.com/matburt/vindinium-go-engine"
"fmt"
)
var (
client vindinium.Client
)
type MatBot struct {}
func (m MatBot) Move(state *vindinium.State) vindinium.Direction {
return "South"
}
func main() {
b := MatBot{}
c := vindinium.NewTrainingClient("yourkey", "5", true, false, true, b)
c.Start()
c.Play()
fmt.Println("Game Finished")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment