Enum pleco::core::piece_move::MoveFlag [−][src]
pub enum MoveFlag { Promotion { capture: bool, prom: PieceType, }, Castle { king_side: bool, }, DoublePawnPush, Capture { ep_capture: bool, }, QuietMove, }
Selected Meta-Data to accompany each move.
Variants
Promotion
The move is a promotion.
Fields of Promotion
capture: bool | Marks the move as a capturing promotion. |
prom: PieceType | The piece that the move promotes to. |
Castle
The move is a castle.
Fields of Castle
king_side: bool | Determines if the castle is a castle on the king side. |
DoublePawnPush
The move is a double pawn push.
Capture
The move is a capturing move.
Fields of Capture
ep_capture: bool | Marks this move as an en-passant capture. |
QuietMove
The move is a quiet move. This means its not a capture, promotion, castle, or double-pawn push.
Trait Implementations
impl Copy for MoveFlag
[src]
impl Copy for MoveFlag
impl Clone for MoveFlag
[src]
impl Clone for MoveFlag
fn clone(&self) -> MoveFlag
[src]
fn clone(&self) -> MoveFlag
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for MoveFlag
[src]
impl PartialEq for MoveFlag