diff --git a/bitboard/src/bitboard.rs b/bitboard/src/bitboard.rs index 3858ebb..f9babd4 100644 --- a/bitboard/src/bitboard.rs +++ b/bitboard/src/bitboard.rs @@ -2,7 +2,7 @@ use crate::library::{library, FILES, RANKS}; use crate::LeadingBitScanner; -use chessfriend_core::{Direction, Square}; +use chessfriend_core::{Color, Direction, Square}; use std::fmt; use std::ops::Not; diff --git a/board/src/position/diagram_formatter.rs b/board/src/position/diagram_formatter.rs index 80bbbe0..9dfb5c7 100644 --- a/board/src/position/diagram_formatter.rs +++ b/board/src/position/diagram_formatter.rs @@ -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] diff --git a/board/src/sight.rs b/board/src/sight.rs index eead56e..76005a2 100644 --- a/board/src/sight.rs +++ b/board/src/sight.rs @@ -1,9 +1,8 @@ // Eryn Wells 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) -> BitBoard; @@ -13,11 +12,13 @@ pub(crate) trait SightExt { pieces: &PieceBitBoards, en_passant_square: Option, ) -> BitBoard; + fn black_pawn_sight( &self, pieces: &PieceBitBoards, en_passant_square: Option, ) -> BitBoard; + fn knight_sight(&self, pieces: &PieceBitBoards) -> BitBoard; fn bishop_sight(&self, pieces: &PieceBitBoards) -> BitBoard; fn rook_sight(&self, pieces: &PieceBitBoards) -> BitBoard; diff --git a/explorer/src/main.rs b/explorer/src/main.rs index fedd11c..54b9fdd 100644 --- a/explorer/src/main.rs +++ b/explorer/src/main.rs @@ -1,6 +1,5 @@ -use board::piece::{Color, Piece, Shape}; -use board::Position; -use chessfriend_core::Square; +use board::{fen::ToFen, MakeMoveBuilder, MoveBuilder, Position, PositionBuilder}; +use chessfriend_core::{Color, Piece, PlacedPiece, Shape, Square}; use clap::{Arg, Command}; use rustyline::error::ReadlineError; use rustyline::DefaultEditor;