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

The move is a promotion.

Fields of Promotion

Marks the move as a capturing promotion.

The piece that the move promotes to.

The move is a castle.

Fields of Castle

Determines if the castle is a castle on the king side.

The move is a double pawn push.

The move is a capturing move.

Fields of Capture

Marks this move as an en-passant capture.

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 Clone for MoveFlag
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for MoveFlag
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for MoveFlag

impl Sync for MoveFlag