From e2380dc251c869d2a761d322d0b4167625d4ee77 Mon Sep 17 00:00:00 2001 From: jchzhang Date: Fri, 18 May 2018 17:04:39 +0800 Subject: [PATCH] support gtp command protocol_version --- mcts/mcts_main.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mcts/mcts_main.cc b/mcts/mcts_main.cc index 1af3649..9eeb920 100644 --- a/mcts/mcts_main.cc +++ b/mcts/mcts_main.cc @@ -140,8 +140,11 @@ std::pair GTPExecute(MCTSEngine &engine, const std::string &c if (op == "version") { return {true, "1.0"}; } + if (op == "protocol_version") { + return {true, "2"}; + } if (op == "list_commands") { - return {true, "name\nversion\nlist_commands\nquit\nclear_board\nboardsize\nkomi\ntime_settings\ntime_left\nplace_free_handicap\nset_free_handicap\nplay\ngenmove\nfinal_score\nget_debug_info\nget_last_move_debug_info"}; + return {true, "name\nversion\nprotocol_version\nlist_commands\nquit\nclear_board\nboardsize\nkomi\ntime_settings\ntime_left\nplace_free_handicap\nset_free_handicap\nplay\ngenmove\nfinal_score\nget_debug_info\nget_last_move_debug_info"}; } if (op == "quit") { return {true, ""};