From: Fabian Fichter Date: Tue, 12 Nov 2019 19:59:03 +0000 (+0100) Subject: Support perft command in xboard protocol X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=95e5d52c0c18a5668264a45d29313df605719693;p=fairystockfish.git Support perft command in xboard protocol --- diff --git a/src/uci.cpp b/src/uci.cpp index b2c5f1c..c9fbff9 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -425,6 +425,14 @@ void UCI::loop(int argc, char* argv[]) { xboard_go(pos, analysis_limits, states); } } + // Additional custom non-UCI commands, mainly for debugging. + else if (token == "perft") + { + Search::LimitsType perft_limits; + is >> perft_limits.perft; + xboard_go(pos, perft_limits, states); + } + // Move strings and unknown commands else { // process move string