mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 01:03: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:
parent
aed542d74c
commit
43ca5c926d
1 changed files with 1 additions and 1 deletions
|
@ -730,7 +730,7 @@ namespace {
|
||||||
{
|
{
|
||||||
// When generating checks consider under-promotion moves (both captures
|
// When generating checks consider under-promotion moves (both captures
|
||||||
// and non captures) only if can give a discovery check.
|
// 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));
|
Bitboard enemyPieces = pos.pieces_of_color(opposite_color(Us));
|
||||||
|
|
||||||
// Underpromotion captures in the a1-h8 (a8-h1 for black) direction
|
// Underpromotion captures in the a1-h8 (a8-h1 for black) direction
|
||||||
|
|
Loading…
Add table
Reference in a new issue