mirror of
https://github.com/sockspls/badfish
synced 2025-07-11 19:49:14 +00:00
parent
4d1220d672
commit
dcd8ce7094
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue