A go client for running a game of Tangram
Run the following commands after ssh-ing into the server of choice.
$ cd tan
$ kill $(cat pid)
$ go build
$ nohup ./tan > web/application.log 2>&1 </dev/null &
$ echo $! > pid
If the application is connecting to a server, run nohup ./tan -c <server> > web/application.log 2>&1 </dev/null &
instead.
- Run the program:
go run client.go [-c remoteAddr] [-p rpcPort] [clientAddr]
- Navigate to
[clientAddr]
to see the browser client
clientAddr
required default: :8080 The address to access the local browser game
-c remoteAddr
optional Remote peer to connect to
-p rpcPort
optional default: 9000 Port to use for RPC
-i identifier
optional default: 0 Id to use for this client. 0 will randomize.
-l
optional default: false Prevents public IP lookup