[core,board] Move board::piece to core

Break up types in core into finer grained modules.
Update all the imports.
This commit is contained in:
Eryn Wells 2024-01-24 17:08:27 -08:00
parent 6f85305912
commit 8b2a3926b3
25 changed files with 235 additions and 227 deletions

View file

@ -1,13 +1,10 @@
// Eryn Wells <eryn@erynwells.me>
use crate::{
piece::{PlacedPiece, Shape},
position::flags::Flags,
r#move::Castle,
Color, MakeMoveError, Move, Piece, Position,
position::flags::Flags, r#move::Castle, sight::SightExt, MakeMoveError, Move, Position,
};
use chessfriend_bitboard::BitBoard;
use chessfriend_core::{Direction, Square};
use chessfriend_core::{Color, Direction, Piece, PlacedPiece, Shape, Square};
/// A position builder that builds a new position by making a move.
#[derive(Clone)]
@ -244,7 +241,8 @@ impl<'p> From<&'p Position> for Builder<'p, NoMove> {
#[cfg(test)]
mod tests {
use super::*;
use crate::{r#move::Castle, MoveBuilder, PositionBuilder};
use crate::{position, r#move::Castle, MoveBuilder, PositionBuilder};
use chessfriend_core::piece;
#[test]
fn move_white_pawn_one_square() -> Result<(), MakeMoveError> {