Skip to content

Commit 98409ce

Browse files
Stefano80IIvec
authored andcommitted
Update comments in LMR step
No functional change Resolves #564
1 parent bc68576 commit 98409ce

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/search.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,9 @@ namespace {
10051005
&& cmh[pos.piece_on(to_sq(move))][to_sq(move)] > VALUE_ZERO)
10061006
r = std::max(DEPTH_ZERO, r - ONE_PLY);
10071007

1008-
// Decrease reduction for moves that escape a capture
1008+
// Decrease reduction for moves that escape a capture. Filter out castling
1009+
// moves because are coded as "king captures rook" and break make_move().
1010+
// Also use see() instead of see_sign() because destination square is empty.
10091011
if ( r
10101012
&& type_of(move) == NORMAL
10111013
&& type_of(pos.piece_on(to_sq(move))) != PAWN

0 commit comments

Comments
 (0)