mirror of
https://github.com/sockspls/badfish
synced 2025-05-02 01:29:36 +00:00
Last touches to movegen.cpp
Of course no functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
769f2fdecb
commit
9d044cf4ee
1 changed files with 4 additions and 4 deletions
|
@ -40,10 +40,10 @@ namespace {
|
||||||
QUEEN_SIDE
|
QUEEN_SIDE
|
||||||
};
|
};
|
||||||
|
|
||||||
static const bool CAPTURE = true;
|
const bool CAPTURE = true;
|
||||||
static const bool NON_CAPTURE = false;
|
const bool NON_CAPTURE = false;
|
||||||
|
|
||||||
// Function
|
// Functions
|
||||||
bool castling_is_check(const Position&, CastlingSide);
|
bool castling_is_check(const Position&, CastlingSide);
|
||||||
|
|
||||||
// Helper templates
|
// Helper templates
|
||||||
|
@ -102,7 +102,7 @@ namespace {
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
inline MoveStack* generate_piece_blocking_evasions<PAWN>(const Position& p, MoveStack* m, Color us,
|
inline MoveStack* generate_piece_blocking_evasions<PAWN>(const Position& p, MoveStack* m, Color us,
|
||||||
Bitboard np, Bitboard bs) {
|
Bitboard np, Bitboard bs) {
|
||||||
if (us == WHITE)
|
if (us == WHITE)
|
||||||
return generate_pawn_blocking_evasions<WHITE, RANK_8, Rank3BB, DELTA_N>(p, np, bs, m);
|
return generate_pawn_blocking_evasions<WHITE, RANK_8, Rank3BB, DELTA_N>(p, np, bs, m);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue