X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fuci.cpp;h=f4d71962fda0d58ab17f1fb4dff9160bfc2b1dff;hp=9574ff96aada4123128df02a92eb0932af0e58bd;hb=e49eb67119f772ef6fcecb736cf136b851ee72cc;hpb=88b5100e290ca1e26190f1d6a97468ed4195fd9b diff --git a/src/uci.cpp b/src/uci.cpp index 9574ff96..f4d71962 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -174,12 +174,14 @@ void UCI::loop(int argc, char* argv[]) { else Search::Limits.ponder = false; } - else if (token == "perft" && (is >> token)) // Read perft depth + else if (token == "perft" || token == "divide") { + int depth; stringstream ss; + is >> depth; ss << Options["Hash"] << " " - << Options["Threads"] << " " << token << " current perft"; + << Options["Threads"] << " " << depth << " current " << token; benchmark(pos, ss); }