X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=63c9e076f61ce6a713a162bace28dfde429b9fa9;hp=4ab17fd85ae80d82273841ffc08296763631f019;hb=d7f5f15d69564ef8399235e0c24806fdf84413f1;hpb=84906b83ec26f5065dc5b4262efe3d6354f3ec06 diff --git a/src/search.cpp b/src/search.cpp index 4ab17fd8..63c9e076 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -949,8 +949,11 @@ moves_loop: // When in check and at SpNode search starts from here if (!PvNode && cutNode) ss->reduction += ONE_PLY; + else if (History[pos.piece_on(to_sq(move))][to_sq(move)] < 0) + ss->reduction += ONE_PLY / 2; + if (move == countermoves[0] || move == countermoves[1]) - ss->reduction = std::max(DEPTH_ZERO, ss->reduction-ONE_PLY); + ss->reduction = std::max(DEPTH_ZERO, ss->reduction - ONE_PLY); Depth d = std::max(newDepth - ss->reduction, ONE_PLY); if (SpNode)