X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=2828ccda35bebb57397034894ce8e434e8de784c;hp=6b8949569f753b38f1f9ee98960d1a8fba7bdaf9;hb=0784bd542bf17679febd9d9d87858fd0fd0424f9;hpb=dc0030de4fdece2851dd0072c9aea53695ed90ce diff --git a/src/search.cpp b/src/search.cpp index 6b894956..2828ccda 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -507,7 +507,7 @@ void Thread::search() { std::stable_sort(rootMoves.begin(), rootMoves.begin() + PVIdx + 1); if (!mainThread) - break; + continue; if (Signals.stop) sync_cout << "info nodes " << Threads.nodes_searched() @@ -1013,13 +1013,12 @@ moves_loop: // When in check search starts from here Value fmValue = (fm ? (*fm)[pos.piece_on(to_sq(move))][to_sq(move)] : VALUE_ZERO); Value fm2Value = (fm2 ? (*fm2)[pos.piece_on(to_sq(move))][to_sq(move)] : VALUE_ZERO); - // Increase reduction for cut nodes and moves with a bad history - if ( (!PvNode && cutNode) - || (hValue < VALUE_ZERO && cmhValue <= VALUE_ZERO)) + // Increase reduction for cut nodes + if (!PvNode && cutNode) r += ONE_PLY; // Decrease/increase reduction for moves with a good/bad history - int rHist = (hValue + cmhValue + fmValue + fm2Value) / 20000; + int rHist = (hValue + cmhValue + fmValue + fm2Value - 10000) / 20000; r = std::max(DEPTH_ZERO, r - rHist * ONE_PLY); // Decrease reduction for moves that escape a capture. Filter out