From: Fabian Fichter Date: Sun, 18 Jul 2021 13:37:21 +0000 (+0200) Subject: Merge official-stockfish/master X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=0529052755d8954b16c1202dd6861f474317acf5;p=fairystockfish.git Merge official-stockfish/master No functional change. --- 0529052755d8954b16c1202dd6861f474317acf5 diff --cc src/movegen.cpp index 6013b87,5f3ba90..9754c8d --- a/src/movegen.cpp +++ b/src/movegen.cpp @@@ -108,14 -52,6 +108,13 @@@ namespace constexpr Direction UpRight = (Us == WHITE ? NORTH_EAST : SOUTH_WEST); constexpr Direction UpLeft = (Us == WHITE ? NORTH_WEST : SOUTH_EAST); + Bitboard TRank8BB = pos.mandatory_pawn_promotion() ? rank_bb(relative_rank(Us, pos.promotion_rank(), pos.max_rank())) + : zone_bb(Us, pos.promotion_rank(), pos.max_rank()); + Bitboard TRank7BB = shift(TRank8BB); + // Define squares a pawn can pass during a double step + Bitboard TRank3BB = forward_ranks_bb(Us, relative_rank(Us, pos.double_step_rank_min(), pos.max_rank())) + & ~shift(forward_ranks_bb(Us, relative_rank(Us, pos.double_step_rank_max(), pos.max_rank()))); + - const Square ksq = pos.count(Them) ? pos.square(Them) : SQ_NONE; const Bitboard emptySquares = Type == QUIETS || Type == QUIET_CHECKS ? target : ~pos.pieces(); const Bitboard enemies = Type == EVASIONS ? pos.checkers() : Type == CAPTURES ? target : pos.pieces(Them);