move
Types
pub type Move {
Normal(
from: Position,
to: Position,
captured: Option(Piece),
promotion: Option(Piece),
)
Castle(from: Position, to: Position)
EnPassant(from: Position, to: Position)
}
Constructors
-
Normal( from: Position, to: Position, captured: Option(Piece), promotion: Option(Piece), )
-
Castle(from: Position, to: Position)
-
EnPassant(from: Position, to: Position)
Functions
pub fn to_string(move: Move) -> String