seer/src/board/directions.rs

23 lines
433 B
Rust
Raw Normal View History

2022-07-17 23:06:43 +02:00
/// A direction on the board. Either along the rook, bishop, or knight directions
#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub enum Direction {
North,
West,
South,
East,
NorthWest,
SouthWest,
SouthEast,
NorthEast,
NorthNorthWest,
NorthWestWest,
SouthWestWest,
SouthSouthWest,
SouthSouthEast,
SouthEastEast,
NorthEastEast,
NorthNorthEast,
}