Skip to content

Instantly share code, notes, and snippets.

@harold
Created October 30, 2011 02:03
Show Gist options
  • Save harold/1325370 to your computer and use it in GitHub Desktop.
Save harold/1325370 to your computer and use it in GitHub Desktop.
First inter-language battle.
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","command":"start_game","nick":"F# Doms Player"}
### Turn #1 #########################
SEND 90 bytes to RandomMatch: {"command":"move","state":{"hand":[[0,1],[5,6],[0,4],[6,6],[1,2],[4,4],[1,1]],"board":[]}}
RECV 49 bytes from RandomMatch: {"command":"move","action":"play","domino":[1,1]}
### Turn #2 #########################
SEND 95 bytes to F# Doms Player: {"command":"move","state":{"hand":[[4,6],[0,2],[1,4],[0,5],[0,0],[3,4],[3,3]],"board":[[1,1]]}}
RECV 63 bytes from F# Doms Player: {"command":"move","action":"play","domino":[1,4],"edge":"back"}
### Turn #3 #########################
SEND 95 bytes to RandomMatch: {"command":"move","state":{"hand":[[0,1],[5,6],[0,4],[6,6],[1,2],[4,4]],"board":[[1,1],[1,4]]}}
RECV 63 bytes from RandomMatch: {"command":"move","action":"play","domino":[1,2],"edge":"left"}
### Turn #4 #########################
SEND 101 bytes to F# Doms Player: {"command":"move","state":{"hand":[[4,6],[0,2],[0,5],[0,0],[3,4],[3,3]],"board":[[2,1],[1,1],[1,4]]}}
RECV 63 bytes from F# Doms Player: {"command":"move","action":"play","domino":[4,6],"edge":"back"}
### Turn #5 #########################
SEND 101 bytes to RandomMatch: {"command":"move","state":{"hand":[[0,1],[5,6],[0,4],[6,6],[4,4]],"board":[[2,1],[1,1],[1,4],[4,6]]}}
RECV 64 bytes from RandomMatch: {"command":"move","action":"play","domino":[6,6],"edge":"right"}
### Turn #6 #########################
SEND 107 bytes to F# Doms Player: {"command":"move","state":{"hand":[[0,2],[0,5],[0,0],[3,4],[3,3]],"board":[[2,1],[1,1],[1,4],[4,6],[6,6]]}}
RECV 64 bytes from F# Doms Player: {"command":"move","action":"play","domino":[0,2],"edge":"front"}
### Turn #7 #########################
SEND 107 bytes to RandomMatch: {"command":"move","state":{"hand":[[0,1],[5,6],[0,4],[4,4]],"board":[[0,2],[2,1],[1,1],[1,4],[4,6],[6,6]]}}
RECV 63 bytes from RandomMatch: {"command":"move","action":"play","domino":[0,4],"edge":"left"}
### Turn #8 #########################
SEND 113 bytes to F# Doms Player: {"command":"move","state":{"hand":[[0,5],[0,0],[3,4],[3,3]],"board":[[4,0],[0,2],[2,1],[1,1],[1,4],[4,6],[6,6]]}}
RECV 64 bytes from F# Doms Player: {"command":"move","action":"play","domino":[3,4],"edge":"front"}
### Turn #9 #########################
SEND 113 bytes to RandomMatch: {"command":"move","state":{"hand":[[0,1],[5,6],[4,4]],"board":[[3,4],[4,0],[0,2],[2,1],[1,1],[1,4],[4,6],[6,6]]}}
RECV 64 bytes from RandomMatch: {"command":"move","action":"play","domino":[5,6],"edge":"right"}
### Turn #10 #########################
SEND 119 bytes to F# Doms Player: {"command":"move","state":{"hand":[[0,5],[0,0],[3,3]],"board":[[3,4],[4,0],[0,2],[2,1],[1,1],[1,4],[4,6],[6,6],[6,5]]}}
RECV 64 bytes from F# Doms Player: {"command":"move","action":"play","domino":[3,3],"edge":"front"}
### Turn #11 #########################
SEND 119 bytes to RandomMatch: {"command":"move","state":{"hand":[[0,1],[4,4]],"board":[[3,3],[3,4],[4,0],[0,2],[2,1],[1,1],[1,4],[4,6],[6,6],[6,5]]}}
RECV 37 bytes from RandomMatch: {"command":"move","action":"chapped"}
### Turn #12 #########################
SEND 119 bytes to F# Doms Player: {"command":"move","state":{"hand":[[0,5],[0,0]],"board":[[3,3],[3,4],[4,0],[0,2],[2,1],[1,1],[1,4],[4,6],[6,6],[6,5]]}}
RECV 63 bytes from F# Doms Player: {"command":"move","action":"play","domino":[0,5],"edge":"back"}
### Turn #13 #########################
SEND 125 bytes to RandomMatch: {"command":"move","state":{"hand":[[0,1],[4,4]],"board":[[3,3],[3,4],[4,0],[0,2],[2,1],[1,1],[1,4],[4,6],[6,6],[6,5],[5,0]]}}
RECV 64 bytes from RandomMatch: {"command":"move","action":"play","domino":[0,1],"edge":"right"}
### Turn #14 #########################
SEND 125 bytes to F# Doms Player: {"command":"move","state":{"hand":[[0,0]],"board":[[3,3],[3,4],[4,0],[0,2],[2,1],[1,1],[1,4],[4,6],[6,6],[6,5],[5,0],[0,1]]}}
RECV 37 bytes from F# Doms Player: {"action":"chapped","command":"move"}
### Turn #15 #########################
SEND 125 bytes to RandomMatch: {"command":"move","state":{"hand":[[4,4]],"board":[[3,3],[3,4],[4,0],[0,2],[2,1],[1,1],[1,4],[4,6],[6,6],[6,5],[5,0],[0,1]]}}
RECV 37 bytes from RandomMatch: {"command":"move","action":"chapped"}
Domohnoes standings: {"F# Doms Player"=>1, "RandomMatch"=>0}
SEND 48 bytes to RandomMatch: {"command":"gameover","winner":"F# Doms Player"}
SEND 48 bytes to F# Doms Player: {"command":"gameover","winner":"F# Doms Player"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment