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:
Marco Costalba
2011-10-29 16:49:59 +01:00
parent 2fe4e10b0b
commit e896368496
2 changed files with 63 additions and 126 deletions
+1 -2
View File
@@ -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;