pub enum MoveRecord {
Normal {
from: Square,
to: Square,
moved: Piece,
captured: Option<Piece>,
promoted: bool,
},
Drop {
to: Square,
piece: Piece,
},
}MoveRecord stores information necessary to undo the move.
Variants
NormalFields of Normal
DropFields of Drop
Methods
Converts the move into SFEN formatted string.
Trait Implementations
Formats the value using the given formatter.
fn eq(&self, other: &Move) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.