[board] Move neighbor::Direction → square::Direction
This commit is contained in:
parent
19c48b9816
commit
ff59799add
3 changed files with 11 additions and 14 deletions
|
@ -1,5 +1,4 @@
|
||||||
mod bitboard;
|
mod bitboard;
|
||||||
mod neighbor;
|
|
||||||
pub mod piece;
|
pub mod piece;
|
||||||
mod position;
|
mod position;
|
||||||
mod square;
|
mod square;
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
// Eryn Wells <eryn@erynwells.me>
|
|
||||||
|
|
||||||
pub enum Direction {
|
|
||||||
North,
|
|
||||||
NorthWest,
|
|
||||||
West,
|
|
||||||
SouthWest,
|
|
||||||
South,
|
|
||||||
SouthEast,
|
|
||||||
East,
|
|
||||||
NorthEast,
|
|
||||||
}
|
|
|
@ -1,8 +1,18 @@
|
||||||
// Eryn Wells <eryn@erynwells.me>
|
// Eryn Wells <eryn@erynwells.me>
|
||||||
|
|
||||||
use crate::neighbor::Direction;
|
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
|
|
||||||
|
pub enum Direction {
|
||||||
|
North,
|
||||||
|
NorthWest,
|
||||||
|
West,
|
||||||
|
SouthWest,
|
||||||
|
South,
|
||||||
|
SouthEast,
|
||||||
|
East,
|
||||||
|
NorthEast,
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct ParseSquareError;
|
pub struct ParseSquareError;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue