From dcd8ce70941e9b8d5180eb43865bb9819e424c19 Mon Sep 17 00:00:00 2001 From: Stefano80 Date: Wed, 13 Jan 2016 16:02:48 +0000 Subject: [PATCH] Update comments in LMR step No functional change Resolves #564 --- src/search.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index 3e9506d7..0cee3aa9 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1005,7 +1005,9 @@ moves_loop: // When in check search starts from here && cmh[pos.piece_on(to_sq(move))][to_sq(move)] > VALUE_ZERO) r = std::max(DEPTH_ZERO, r - ONE_PLY); - // Decrease reduction for moves that escape a capture + // Decrease reduction for moves that escape a capture. Filter out castling + // moves because are coded as "king captures rook" and break make_move(). + // Also use see() instead of see_sign() because destination square is empty. if ( r && type_of(move) == NORMAL && type_of(pos.piece_on(to_sq(move))) != PAWN -- 2.39.2