X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=1303e1fb08f7c587ea02b192fca7d8ec32c7e90c;hp=03a8bfcd0885fc0d6d92e6079ffbf816ef789733;hb=4bef7aa5cd682617502cacfa4413c0d2c78401ca;hpb=4aa091cf4486b0f03d0026eee5a1b48c04dbad8e diff --git a/src/search.cpp b/src/search.cpp index 03a8bfcd..1303e1fb 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -766,7 +766,7 @@ namespace { assert(eval - beta >= 0); // Null move dynamic reduction based on depth and value - Depth R = ((823 + 67 * depth / ONE_PLY) / 256 + std::min((eval - beta) / PawnValueMg, 3)) * ONE_PLY; + Depth R = ((823 + 67 * depth / ONE_PLY) / 256 + std::min(int(eval - beta) / 200, 3)) * ONE_PLY; ss->currentMove = MOVE_NULL; ss->continuationHistory = &thisThread->continuationHistory[NO_PIECE][0]; @@ -815,7 +815,7 @@ namespace { while ( (move = mp.next_move()) != MOVE_NONE && probCutCount < 3) - if (pos.legal(move)) + if (move != excludedMove && pos.legal(move)) { probCutCount++;