literal sequence every 3rd game
doc the strategies
Written for https://github.com/agnostechvalley/katas/tree/master/2016-10
Since ZeroMQ uses TCP as its protocol a server and client can be written in any language as long as it uses the
PAIR socket type. Then the server and client can be started in any order. If you start the server first you do have to know the address of the server ahead of time.
PORT to start as a server and wait for a connection.
$ GAMES=7 PORT=1313 go run go/main.go Address: tcp://10.0.0.13:1313 Games: 7 ...
$ GAMES=7 PORT=1313 julia julia/main.jl Address: tcp://10.0.0.13:1313 Games: 7 ...
ADDRESS of a running server.
$ ADDRESS=tcp://10.0.0.13:1313 go run go/main.go Games: 7 ...
$ ADDRESS=tcp://10.0.0.13:1313 julia julia/main.jl Games: 7 ...
Right now only the Go code has strategies implemented. These strategies can be set with the
Randomly chooses rock, paper, scissors to throw.
Calculates their least thrown and throws the beating throw to that.
Calculates their most thrown and throws the beating throw to that.
Throws rock, paper, scissors in that order...forever.