Struct stockfish_core::core::Direction
source · pub struct Direction(_);Expand description
The cardinal directions on a chessboard plus the other individual steps a token is capable of taking across a chess board.
Implementations§
source§impl Direction
impl Direction
pub const NONE: Self = _
pub const N: Self = _
pub const E: Self = _
pub const S: Self = _
pub const W: Self = _
pub const NW: Self = _
pub const NN: Self = _
pub const NE: Self = _
pub const EE: Self = _
pub const SE: Self = _
pub const SS: Self = _
pub const SW: Self = _
pub const WW: Self = _
pub const NNW: Self = _
pub const NNE: Self = _
pub const ENE: Self = _
pub const ESE: Self = _
pub const SSE: Self = _
pub const SSW: Self = _
pub const WSW: Self = _
pub const WNW: Self = _
source§impl Direction
impl Direction
sourcepub const fn lateral_part(self) -> Self
pub const fn lateral_part(self) -> Self
Returns only the east-west component of this direction.
sourcepub const fn vertical_part(self) -> Self
pub const fn vertical_part(self) -> Self
Returns only the north-south component of this direction.