[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::library::{library, FILES, RANKS};
|
||||||
use crate::LeadingBitScanner;
|
use crate::LeadingBitScanner;
|
||||||
use chessfriend_core::{Direction, Square};
|
use chessfriend_core::{Color, Direction, Square};
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
use std::ops::Not;
|
use std::ops::Not;
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,6 @@ impl<'a> fmt::Display for DiagramFormatter<'a> {
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
use crate::{position, Position};
|
use crate::{position, Position};
|
||||||
use chessfriend_core::piece;
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[ignore]
|
#[ignore]
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
// Eryn Wells <eryn@erynwells.me>
|
// Eryn Wells <eryn@erynwells.me>
|
||||||
|
|
||||||
use crate::position::piece_sets::PieceBitBoards;
|
use crate::position::piece_sets::PieceBitBoards;
|
||||||
use crate::Position;
|
|
||||||
use chessfriend_bitboard::BitBoard;
|
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 {
|
pub(crate) trait SightExt {
|
||||||
fn sight(&self, pieces: &PieceBitBoards, en_passant_square: Option<Square>) -> BitBoard;
|
fn sight(&self, pieces: &PieceBitBoards, en_passant_square: Option<Square>) -> BitBoard;
|
||||||
|
@ -13,11 +12,13 @@ pub(crate) trait SightExt {
|
||||||
pieces: &PieceBitBoards,
|
pieces: &PieceBitBoards,
|
||||||
en_passant_square: Option<Square>,
|
en_passant_square: Option<Square>,
|
||||||
) -> BitBoard;
|
) -> BitBoard;
|
||||||
|
|
||||||
fn black_pawn_sight(
|
fn black_pawn_sight(
|
||||||
&self,
|
&self,
|
||||||
pieces: &PieceBitBoards,
|
pieces: &PieceBitBoards,
|
||||||
en_passant_square: Option<Square>,
|
en_passant_square: Option<Square>,
|
||||||
) -> BitBoard;
|
) -> BitBoard;
|
||||||
|
|
||||||
fn knight_sight(&self, pieces: &PieceBitBoards) -> BitBoard;
|
fn knight_sight(&self, pieces: &PieceBitBoards) -> BitBoard;
|
||||||
fn bishop_sight(&self, pieces: &PieceBitBoards) -> BitBoard;
|
fn bishop_sight(&self, pieces: &PieceBitBoards) -> BitBoard;
|
||||||
fn rook_sight(&self, pieces: &PieceBitBoards) -> BitBoard;
|
fn rook_sight(&self, pieces: &PieceBitBoards) -> BitBoard;
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
use board::piece::{Color, Piece, Shape};
|
use board::{fen::ToFen, MakeMoveBuilder, MoveBuilder, Position, PositionBuilder};
|
||||||
use board::Position;
|
use chessfriend_core::{Color, Piece, PlacedPiece, Shape, Square};
|
||||||
use chessfriend_core::Square;
|
|
||||||
use clap::{Arg, Command};
|
use clap::{Arg, Command};
|
||||||
use rustyline::error::ReadlineError;
|
use rustyline::error::ReadlineError;
|
||||||
use rustyline::DefaultEditor;
|
use rustyline::DefaultEditor;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue