[board] Remove BoardSide enum; use Castle everywhere
Move Castle to a castle module inside the move module. Implement into_index() on Castle to turn it into a usize.
This commit is contained in:
parent
21b5266789
commit
fa1c6b452e
8 changed files with 95 additions and 63 deletions
|
@ -14,7 +14,7 @@ mod square;
|
|||
|
||||
pub use piece::{Color, Piece};
|
||||
pub use position::{Position, PositionBuilder};
|
||||
pub use r#move::{MakeMoveError, Move, MoveBuilder};
|
||||
pub use r#move::{Castle, MakeMoveError, Move, MoveBuilder};
|
||||
pub use square::{File, Rank, Square};
|
||||
|
||||
pub(crate) use bitboard::BitBoard;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue