[board] Clean up a bunch of imports
This commit is contained in:
parent
1e77bc5ebb
commit
66d03d3514
4 changed files with 6 additions and 7 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue