mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
Assorted work in uci.cpp
- Change UCI::value() signature This function should only return the value, lowerbound and upperbound info is up to the caller because it requires external knowledge, out of the scope of this little helper. - Retire 'key' command It is not an UCI command and is absolutely useless: never used. - Comments fixing and other trivia No functional change.
This commit is contained in:
@@ -1446,8 +1446,12 @@ moves_loop: // When in check and at SpNode search starts from here
|
||||
ss << "info depth " << d / ONE_PLY
|
||||
<< " seldepth " << selDepth
|
||||
<< " multipv " << i + 1
|
||||
<< " score " << ((!tb && i == PVIdx) ? UCI::value(v, alpha, beta) : UCI::value(v))
|
||||
<< " nodes " << pos.nodes_searched()
|
||||
<< " score " << UCI::value(v);
|
||||
|
||||
if (!tb && i == PVIdx)
|
||||
ss << (v >= beta ? " lowerbound" : v <= alpha ? " upperbound" : "");
|
||||
|
||||
ss << " nodes " << pos.nodes_searched()
|
||||
<< " nps " << pos.nodes_searched() * 1000 / elapsed
|
||||
<< " tbhits " << TB::Hits
|
||||
<< " time " << elapsed
|
||||
|
||||
Reference in New Issue
Block a user