mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 08:37:44 +00:00
Retire undo_castle_move()
Use a templetized do_castle_move() to do/undo the castling. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
+1
-2
@@ -219,8 +219,7 @@ private:
|
||||
|
||||
// Helper functions for doing and undoing moves
|
||||
void do_capture_move(Key& key, PieceType capture, Color them, Square to, bool ep);
|
||||
void do_castle_move(Move m);
|
||||
void undo_castle_move(Move m);
|
||||
template<bool Do> void do_castle_move(Move m);
|
||||
|
||||
template<bool FindPinned>
|
||||
Bitboard hidden_checkers() const;
|
||||
|
||||
Reference in New Issue
Block a user