[board] Clean up a bunch of build errors

Fix imports to refer to core and bitboard crates.
Fix some API use errors.
This commit is contained in:
Eryn Wells 2024-01-24 09:18:12 -08:00
parent 3cec64d686
commit 6f85305912
17 changed files with 59 additions and 36 deletions

View file

@ -7,8 +7,9 @@ use super::{move_generator_declaration, MoveGeneratorInternal, MoveSet};
use crate::{
piece::{Color, Piece, PlacedPiece},
r#move::Castle,
BitBoard, Move, MoveBuilder, Position,
Move, MoveBuilder, Position,
};
use chessfriend_bitboard::BitBoard;
move_generator_declaration!(KingMoveGenerator, struct);
move_generator_declaration!(KingMoveGenerator, new);
@ -76,7 +77,8 @@ impl<'pos> MoveGeneratorInternal for KingMoveGenerator<'pos> {
#[cfg(test)]
mod tests {
use super::*;
use crate::Square;
use chessfriend_bitboard::bitboard;
use chessfriend_core::Square;
use std::collections::HashSet;
#[test]