mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 09:37:16 +08:00
Add perft 'divide' command
To show perft numbers for each move. Just use 'divide' instead of 'perft', for instance: position startpos moves e2e4 e7e5 divide 4 Inspired by Ronald de Man. No functional change.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user