1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 00:33:09 +00:00

Enable functionality of previous patch

Now under-promotion checks are generated.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2009-09-21 10:58:25 +01:00
parent aed542d74c
commit 43ca5c926d

View file

@ -730,7 +730,7 @@ namespace {
{
// When generating checks consider under-promotion moves (both captures
// and non captures) only if can give a discovery check.
Bitboard pp = GenerateChecks ? pawns & dc & EmptyBoardBB: pawns;
Bitboard pp = GenerateChecks ? pawns & dc : pawns;
Bitboard enemyPieces = pos.pieces_of_color(opposite_color(Us));
// Underpromotion captures in the a1-h8 (a8-h1 for black) direction