[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

@ -2,15 +2,14 @@
use super::{flags::Flags, piece_sets::PieceBitBoards, Pieces};
use crate::{
move_generator::Moves,
piece::{Color, Piece, PlacedPiece, Shape},
move_generator::{MoveSet, Moves},
position::DiagramFormatter,
r#move::Castle,
sight::Sight,
sight::SightExt,
Move,
};
use chessfriend_bitboard::BitBoard;
use chessfriend_core::Square;
use chessfriend_core::{Color, Piece, PlacedPiece, Shape, Square};
use std::{cell::OnceCell, fmt};
#[derive(Clone, Debug, Eq, PartialEq)]
@ -268,8 +267,8 @@ impl fmt::Display for Position {
#[cfg(test)]
mod tests {
use crate::{position, Castle, Color, Position};
use chessfriend_core::Square;
use crate::{position, test_position, Castle, Position};
use chessfriend_core::{piece, Color, Square};
#[test]
fn piece_on_square() {