Improving basic swarm bot

This commit is contained in:
Fraser Graham
2014-04-27 00:49:16 -06:00
parent a2436fe8d8
commit f8ecde3e81
2 changed files with 85 additions and 66 deletions
+2
View File
@@ -30,6 +30,7 @@ var forceJSON = flag.Bool("json", false, "force json encoding")
func main() {
log.SetFlags(log.Ldate | log.Ltime | log.Lshortfile)
rand.Seed(time.Now().UnixNano())
var gameId string
flag.Parse()
@@ -39,6 +40,7 @@ func main() {
gameId = flag.Arg(0)
}
client.Verbose = *verbose
c := &client.Client{
Server: *serverHostname,
Port: *port,