added undo_move, added make/undo testing
This commit is contained in:
parent
e7578dd0f0
commit
1ddc38165f
5 changed files with 226 additions and 53 deletions
10
src/move.rs
10
src/move.rs
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue