X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=d03a251fe2d3516a9130868fb3073cce7aee8792;hp=f0ee1b2b90f628c389627c29a989c98936017322;hb=e48c7547c50d56b7aa7fd4a244533daca1ef6a57;hpb=6e2ca97d93812b2f630f8b4ec1042105557abaec diff --git a/src/search.cpp b/src/search.cpp index f0ee1b2b..d03a251f 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1010,7 +1010,7 @@ moves_loop: // When in check search starts from here // Increase reduction for cut nodes if (!PvNode && cutNode) - r += ONE_PLY; + r += 2 * ONE_PLY; // Decrease reduction for moves that escape a capture. Filter out // castling moves, because they are coded as "king captures rook" and @@ -1019,7 +1019,7 @@ moves_loop: // When in check search starts from here else if ( type_of(move) == NORMAL && type_of(pos.piece_on(to_sq(move))) != PAWN && pos.see(make_move(to_sq(move), from_sq(move))) < VALUE_ZERO) - r -= ONE_PLY; + r -= 2 * ONE_PLY; // Decrease/increase reduction for moves with a good/bad history int rHist = (val - 10000) / 20000;