Skip to content
This repository has been archived by the owner on Jul 24, 2019. It is now read-only.

Latest commit

 

History

History
29 lines (26 loc) · 1.76 KB

README.md

File metadata and controls

29 lines (26 loc) · 1.76 KB

Decentralized Tangram

A go client for running a game of Tangram

Running on Azure

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.

Usage

  1. Run the program: go run client.go [-c remoteAddr] [-p rpcPort] [clientAddr]
  2. Navigate to [clientAddr] to see the browser client

Arguments

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