void do_move(Move m, UndoInfo &u);
void undo_move(Move m);
void do_null_move(UndoInfo &u);
- void undo_null_move(const UndoInfo &u);
+ void undo_null_move();
// Static exchange evaluation
int see(Square from, Square to) const;
Value mgValue, egValue;
PieceType capture;
UndoInfo* previous;
- };
+ } st;
};
// Static variables
}
inline Square Position::ep_square() const {
- return epSquare;
+ return st.epSquare;
}
inline Square Position::king_square(Color c) const {
}
inline bool Position::can_castle_kingside(Color side) const {
- return castleRights & (1+int(side));
+ return st.castleRights & (1+int(side));
}
inline bool Position::can_castle_queenside(Color side) const {
- return castleRights & (4+4*int(side));
+ return st.castleRights & (4+4*int(side));
}
inline bool Position::can_castle(Color side) const {
}
inline Bitboard Position::checkers() const {
- return checkersBB;
+ return st.checkersBB;
}
inline bool Position::is_check() const {
- return checkersBB != EmptyBoardBB;
+ return st.checkersBB != EmptyBoardBB;
}
inline bool Position::pawn_attacks_square(Color c, Square f, Square t) const {
}
inline Key Position::get_key() const {
- return key;
+ return st.key;
}
inline Key Position::get_pawn_key() const {
- return pawnKey;
+ return st.pawnKey;
}
inline Key Position::get_material_key() const {
- return materialKey;
+ return st.materialKey;
}
template<Position::GamePhase Phase>
}
inline Value Position::mg_value() const {
- return mgValue;
+ return st.mgValue;
}
inline Value Position::eg_value() const {
- return egValue;
+ return st.egValue;
}
inline Value Position::non_pawn_material(Color c) const {
inline int Position::rule_50_counter() const {
- return rule50;
+ return st.rule50;
}
inline bool Position::opposite_colored_bishops() const {