make term ui optional and orthogonal to client and player implementations #1

Open
sm wants to merge 3 commits from viz into master
Showing only changes of commit 15f1ad15f4 - Show all commits

View File

@ -31,18 +31,18 @@ var spectate = flag.Bool("spectate", false, "enable terminal visualizer")
func main() {
rand.Seed(time.Now().UnixNano())
var gameId string
var gameID string
flag.Parse()
if flag.NArg() < 1 {
gameId = "debug"
gameID = "debug"
} else {
gameId = flag.Arg(0)
gameID = flag.Arg(0)
}
c := &client.Client{
Server: *addr,
Name: *botname,
GameId: gameId,
GameId: gameID,
ForceJSON: *forceJSON,
}
sr := server.StatsRequest{