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

MCAxiaz/Distributed-Tangram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published