Skip to content

Instantly share code, notes, and snippets.

@harold
Created October 28, 2011 23:41
Show Gist options
  • Save harold/1323855 to your computer and use it in GitHub Desktop.
Save harold/1323855 to your computer and use it in GitHub Desktop.
--- server output ---
Using c extension for JSON.
Loaded games: [Domohnoes]
RECV 84 bytes from : {"command":"start_game","gametype":"com.danceliquid.domohnoes","nick":"RandomMatch"}
RECV 87 bytes from : {"gametype":"com.danceliquid.domohnoes","nick":"F# Doms Player","command":"start_game"}
### Turn #1 #########################
SEND 90 bytes to RandomMatch: {"command":"move","state":{"hand":[[0,0],[0,4],[3,3],[0,3],[4,6],[2,3],[1,6]],"board":[]}}
RECV 49 bytes from RandomMatch: {"command":"move","action":"play","domino":[0,3]}
Validating {:command=>"move", :action=>"play", :domino=>[0, 3]} for RandomMatch vs. RandomMatch @ []
Validating {:command=>"move", :action=>"play", :domino=>[0, 3]} for RandomMatch vs. RandomMatch @ []
### Turn #2 #########################
SEND 95 bytes to F# Doms Player: {"command":"move","state":{"hand":[[6,6],[2,6],[1,1],[4,4],[1,3],[2,4],[2,5]],"board":[[3,0]]}}
Exception `Errno::ECONNRESET' at c:/Data/Code/laink/json_socket.rb:50 - An existing connection was forcibly closed by the remote host.
Exception `Errno::ECONNRESET' at server.rb:29 - An existing connection was forcibly closed by the remote host.
c:/Data/Code/laink/json_socket.rb:50:in `read': An existing connection was forcibly closed by the remote host. (Errno::ECONNRESET)
from c:/Data/Code/laink/json_socket.rb:50:in `read_data'
from c:/Data/Code/laink/json_socket.rb:27:in `block in on_receive'
from c:/Data/Code/laink/json_socket.rb:26:in `catch'
from c:/Data/Code/laink/json_socket.rb:26:in `on_receive'
from server.rb:38:in `block (2 levels) in listen_for_clients'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment