Enum shogi::MoveRecord [] [src]

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

Fields of Normal

Fields of Drop

Methods

impl MoveRecord
[src]

Converts the move into SFEN formatted string.

Trait Implementations

impl Debug for MoveRecord
[src]

Formats the value using the given formatter.

impl PartialEq<Move> for MoveRecord
[src]

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

This method tests for !=.