Skip to content

Commit

Permalink
support gtp command protocol_version
Browse files Browse the repository at this point in the history
  • Loading branch information
wodesuck committed May 18, 2018
1 parent 923e5d0 commit e2380dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mcts/mcts_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,11 @@ std::pair<bool, std::string> 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, ""};
Expand Down

0 comments on commit e2380dc

Please sign in to comment.