[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:
parent
3cec64d686
commit
6f85305912
17 changed files with 59 additions and 36 deletions
|
@ -2,8 +2,9 @@
|
|||
|
||||
use crate::{
|
||||
piece::{Color, PlacedPiece, Shape},
|
||||
BitBoard, Position,
|
||||
Position,
|
||||
};
|
||||
use chessfriend_bitboard::BitBoard;
|
||||
use chessfriend_core::Direction;
|
||||
|
||||
pub(crate) trait Sight {
|
||||
|
@ -174,7 +175,8 @@ mod tests {
|
|||
}
|
||||
|
||||
mod pawn {
|
||||
use crate::{sight::Sight, BitBoard};
|
||||
use crate::sight::Sight;
|
||||
use chessfriend_bitboard::{bitboard, BitBoard};
|
||||
use chessfriend_core::Square;
|
||||
|
||||
sight_test!(e4_pawn, piece!(White Pawn on E4), bitboard!(D5, F5));
|
||||
|
@ -234,6 +236,7 @@ mod tests {
|
|||
#[macro_use]
|
||||
mod knight {
|
||||
use crate::sight::Sight;
|
||||
use chessfriend_bitboard::bitboard;
|
||||
|
||||
sight_test!(
|
||||
f6_knight,
|
||||
|
@ -244,6 +247,7 @@ mod tests {
|
|||
|
||||
mod bishop {
|
||||
use crate::sight::Sight;
|
||||
use chessfriend_bitboard::bitboard;
|
||||
|
||||
sight_test!(
|
||||
c2_bishop,
|
||||
|
@ -254,6 +258,7 @@ mod tests {
|
|||
|
||||
mod rook {
|
||||
use crate::sight::Sight;
|
||||
use chessfriend_bitboard::bitboard;
|
||||
|
||||
sight_test!(
|
||||
g3_rook,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue