We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc68576 commit 98409ceCopy full SHA for 98409ce
src/search.cpp
@@ -1005,7 +1005,9 @@ namespace {
1005
&& cmh[pos.piece_on(to_sq(move))][to_sq(move)] > VALUE_ZERO)
1006
r = std::max(DEPTH_ZERO, r - ONE_PLY);
1007
1008
- // Decrease reduction for moves that escape a capture
+ // 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.
1011
if ( r
1012
&& type_of(move) == NORMAL
1013
&& type_of(pos.piece_on(to_sq(move))) != PAWN
0 commit comments