mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 01:56:58 +08:00
Simplify lookup_count and clean up pieces().
https://github.com/official-stockfish/Stockfish/pull/4656 No functional change
This commit is contained in:
committed by
Joost VandeVondele
parent
8634717c64
commit
80564bcfcd
@@ -91,7 +91,7 @@ public:
|
||||
std::string fen() const;
|
||||
|
||||
// Position representation
|
||||
Bitboard pieces(PieceType pt) const;
|
||||
Bitboard pieces(PieceType pt = ALL_PIECES) const;
|
||||
template<typename ...PieceTypes> Bitboard pieces(PieceType pt, PieceTypes... pts) const;
|
||||
Bitboard pieces(Color c) const;
|
||||
template<typename ...PieceTypes> Bitboard pieces(Color c, PieceTypes... pts) const;
|
||||
@@ -224,7 +224,7 @@ inline Piece Position::moved_piece(Move m) const {
|
||||
return piece_on(from_sq(m));
|
||||
}
|
||||
|
||||
inline Bitboard Position::pieces(PieceType pt = ALL_PIECES) const {
|
||||
inline Bitboard Position::pieces(PieceType pt) const {
|
||||
return byTypeBB[pt];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user