mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
Introduce update_checkers() to simplify do_move()
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -86,8 +86,8 @@ struct UndoInfo {
|
||||
Key key, pawnKey, materialKey;
|
||||
int rule50;
|
||||
Move lastMove;
|
||||
PieceType capture;
|
||||
Value mgValue, egValue;
|
||||
PieceType capture;
|
||||
};
|
||||
|
||||
|
||||
@@ -308,6 +308,9 @@ private:
|
||||
void undo_ep_move(Move m);
|
||||
void find_checkers();
|
||||
|
||||
template<PieceType Piece>
|
||||
void update_checkers(Bitboard* pCheckersBB, Square ksq, Square from, Square to, Bitboard dcCandidates);
|
||||
|
||||
template<PieceType Piece, bool FindPinned>
|
||||
Bitboard hidden_checks(Color c, Square ksq) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user