added undo_move, added make/undo testing

This commit is contained in:
Moritz 2025-11-13 16:47:34 +01:00
parent e7578dd0f0
commit 1ddc38165f
5 changed files with 226 additions and 53 deletions

View file

@ -105,11 +105,11 @@ impl MoveList {
}
pub struct UndoMove {
mv: Move,
captured_piece: Option<PieceType>,
old_en_passant_square: Option<Square>,
old_castling_rights: u8,
old_halfmove_clock: u8,
pub mv: Move,
pub captured_piece: Option<PieceType>,
pub old_en_passant_square: Option<Square>,
pub old_castling_rights: u8,
pub old_halfmove_clock: u8,
}
impl UndoMove {