diff --git a/src/search.cpp b/src/search.cpp index 560b031bae7..66d5ace6dcd 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1181,7 +1181,8 @@ Value Search::Worker::search( r -= 1879; if (capture) - ss->statScore = 0; + ss->statScore = 7 * int(PieceValue[pos.captured_piece()]) + + thisThread->captureHistory[movedPiece][move.to_sq()][type_of(pos.captured_piece())] - 5000; else ss->statScore = 2 * thisThread->mainHistory[us][move.from_to()] + (*contHist[0])[movedPiece][move.to_sq()]