diff --git a/src/search.cpp b/src/search.cpp index d71f78ac1..bb9ce68ba 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1237,13 +1237,10 @@ moves_loop: // When in check, search starts here 826 * int(PieceValue[pos.captured_piece()]) / 128 + thisThread->captureHistory[movedPiece][move.to_sq()][type_of(pos.captured_piece())] - 5030; - else if (ss->inCheck) - ss->statScore = thisThread->mainHistory[us][move.from_to()] - + (*contHist[0])[movedPiece][move.to_sq()] - 2766; else ss->statScore = 2 * thisThread->mainHistory[us][move.from_to()] + (*contHist[0])[movedPiece][move.to_sq()] - + (*contHist[1])[movedPiece][move.to_sq()] - 3206; + + (*contHist[1])[movedPiece][move.to_sq()] + 1000 * ss->inCheck - 3206; // Decrease/increase reduction for moves with a good/bad history r -= ss->statScore * 826 / 8192;