[board] Clean up a bunch of imports

This commit is contained in:
Eryn Wells 2024-01-28 09:46:38 -08:00
parent 1e77bc5ebb
commit 66d03d3514
4 changed files with 6 additions and 7 deletions

View file

@ -41,7 +41,6 @@ impl<'a> fmt::Display for DiagramFormatter<'a> {
mod tests {
use super::*;
use crate::{position, Position};
use chessfriend_core::piece;
#[test]
#[ignore]

View file

@ -1,9 +1,8 @@
// Eryn Wells <eryn@erynwells.me>
use crate::position::piece_sets::PieceBitBoards;
use crate::Position;
use chessfriend_bitboard::BitBoard;
use chessfriend_core::{Color, Direction, Piece, PlacedPiece, Shape, Square};
use chessfriend_core::{Color, Direction, PlacedPiece, Shape, Square};
pub(crate) trait SightExt {
fn sight(&self, pieces: &PieceBitBoards, en_passant_square: Option<Square>) -> BitBoard;
@ -13,11 +12,13 @@ pub(crate) trait SightExt {
pieces: &PieceBitBoards,
en_passant_square: Option<Square>,
) -> BitBoard;
fn black_pawn_sight(
&self,
pieces: &PieceBitBoards,
en_passant_square: Option<Square>,
) -> BitBoard;
fn knight_sight(&self, pieces: &PieceBitBoards) -> BitBoard;
fn bishop_sight(&self, pieces: &PieceBitBoards) -> BitBoard;
fn rook_sight(&self, pieces: &PieceBitBoards) -> BitBoard;