Introduce update_checkers() to simplify do_move()

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2009-02-12 12:12:46 +01:00
parent 8365f8ac1e
commit 1d2247aea3
2 changed files with 41 additions and 38 deletions

View File

@@ -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;