class Position {
- // No default or copy c'tor allowed, default c'tor will not be generated
- // anyhow because of user-defined c'tors.
+ // No defaul, copy c'tor or assignment allowed, default c'tor will not be
+ // generated anyhow because of user-defined c'tors.
Position(const Position&);
+ Position& operator=(const Position&);
public:
Position(const Position& pos, int threadID);
Square castle_rook_square(CastleRight f) const;
// Bitboards for pinned pieces and discovered check candidates
- Bitboard discovered_check_candidates(Color c) const;
- Bitboard pinned_pieces(Color c) const;
+ Bitboard discovered_check_candidates() const;
+ Bitboard pinned_pieces() const;
// Checking pieces and under check information
Bitboard checkers() const;
void undo_castle_move(Move m);
template<bool FindPinned>
- Bitboard hidden_checkers(Color c) const;
+ Bitboard hidden_checkers() const;
// Computing hash keys from scratch (for initialization and debugging)
Key compute_key() const;