CGOS communication sample

Game start

Black : test2 White : test1 admin command match test1 test2 1800 1800 Bold red is player's command.

Black player

$ telnet 203.138.189.63 6819 Trying 203.138.189.63... Connected to 203.138.189.63. Escape character is '^]'. protocol genmove_analyze e1 hoge ... e1 means engine version 1. The string after that can be anything. username test2 password test2 ... test2's password is registerd as "test2". setup 9000 19 6.5 1800000 test1(1800?) test2(1800?) genmove b 1800000 d3 ... D3 is also OK. play w e5 1788758 genmove b 1789805 c10 play w r12 1774932 genmove b 1773775 f8 play w r10 1766650 genmove b 1764848 pass play w pass 1762399 gameover 2023-06-20 W+6.5 ready ... return to waiting mode. info Next round will start soon: 18:56 ... This message is sent each one minute as keep alive.

White player

$ telnet 203.138.189.63 6819 Trying 203.138.189.63... Connected to 203.138.189.63. Escape character is '^]'. protocol genmove_analyze e1 hoge username test1 password test1 setup 9000 19 6.5 1800000 test1(1800?) test2(1800?) play b d3 1789805 genmove w 1800000 e5 play b c10 1773775 genmove w 1788758 r12 play b f8 1764848 genmove w 1774932 r10 play b pass 1758601 genmove w 1766650 pass gameover 2023-06-20 W+6.5 ready

Resume Game

Server will send game record by "setup" command. Your GTP client have to send these moves by "play" command to engine. Black : test2 White : test1

Black player

$ telnet 203.138.189.63 6819 Trying 203.138.189.63... Connected to 203.138.189.63. Escape character is '^]'. protocol genmove_analyze e1 hoge username test2 password test2 setup 9001 19 6.5 1800000 test1(1800?) test2(1800?) genmove b 1800000 e8 play w d5 1795481 genmove b 1791526 c3 play w t10 1785353 genmove b 1788044 s12 ^C ... disconnect intentionally by Ctrl+C. Connection closed by foreign host. $ telnet 203.138.189.63 6819 Trying 203.138.189.63... Connected to 203.138.189.63. Escape character is '^]'. protocol genmove_analyze e1 hoge username test2 password test2 setup 9001 19 6.5 1800000 test1(1800?) test2(1800?) e8 1791526 d5 1795481 c3 1788044 t10 1785353 s12 1777240 play w g5 1717888 genmove b 1777240 ^C ... disconnect intentionally again. Connection closed by foreign host. $ telnet 203.138.189.63 6819 Trying 203.138.189.63... Connected to 203.138.189.63. Escape character is '^]'. protocol genmove_analyze e1 hoge username test2 password test2 setup 9001 19 6.5 1800000 test1(1800?) test2(1800?) e8 1791526 d5 1795481 c3 1788044 t10 1785353 s12 1777240 g5 1717888 genmove b 1735784 g11 play w c11 1703237 genmove b 1725545 resign gameover 2023-06-20 W+Resign ready

cgos-genmove_analyze in 9x9

$ telnet 203.138.189.63 6809 Trying 203.138.189.63... Connected to 203.138.189.63. Escape character is '^]'. protocol genmove_analyze e1 cgfgoban1.1.1 genmove_analyze genmove_analyze is needed username test1 password test1 setup 25036 9 7.0 600000 aya_test(1800?) test1(1800?) genmove b 600000 e5 {"moves":[{"move":"E5","visits":141,"winrate":0.497,"pv":"G5 C5 B5"}]} play w F4 599958 genmove b 590793 d3 {"moves":[{"move":"D3","visits":88,"winrate":0.431,"pv":"F6 D4"}]} play w F6 599958 genmove b 580416