X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=587506ec44ff91218b730f4cc948e74b1afecc98;hp=83c06a6215182b3c3ec3eb2c3005855297d6888f;hb=aea2fde6117be2fbda1caa62c842dea766780be5;hpb=2416242c966bfccd5a779e037dfe0d2d4cd8f3fe diff --git a/src/search.cpp b/src/search.cpp index 83c06a62..587506ec 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -20,7 +20,7 @@ #include #include #include -#include +#include // For std::memset #include #include @@ -650,7 +650,7 @@ namespace { assert(eval - beta >= 0); // Null move dynamic reduction based on depth and value - Depth R = (3 + depth / 4 + std::min((eval - beta) / PawnValueMg, 3)) * ONE_PLY; + Depth R = ((823 + 67 * depth) / 256 + std::min((eval - beta) / PawnValueMg, 3)) * ONE_PLY; pos.do_null_move(st); (ss+1)->skipEarlyPruning = true; @@ -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