File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,12 +23,14 @@ using namespace std;
2323const string GET_MOVES_COMMAND = " get_moves" ;
2424const string GET_POSITION_COMMAND = " get_position" ;
2525const string GET_BOARDSIZE = " get_boardsize" ;
26+ const string INFO = " info" ;
2627
2728static const vector<string> knownCommands = {
2829 // Basic GTP commands
2930 " protocol_version" ,
3031 " name" ,
3132 " version" ,
33+ INFO ,
3234 " known_command" ,
3335 " list_commands" ,
3436 " quit" ,
@@ -2310,6 +2312,14 @@ int MainCmds::gtp(const vector<string>& args) {
23102312 }
23112313 }
23122314
2315+ else if (command == INFO ) {
2316+ response = Version::getAppFullInfo (true );
2317+ if (engine->nnEval != nullptr )
2318+ response += " ," + engine->nnEval ->getInternalModelName ();
2319+ if (engine->humanEval != nullptr )
2320+ response += " ," + engine->humanEval ->getInternalModelName ();
2321+ }
2322+
23132323 else if (command == " known_command" ) {
23142324 if (pieces.size () != 1 ) {
23152325 responseIsError = true ;
You can’t perform that action at this time.
0 commit comments