[position] Fix a few warnings related to imports; make position::Flags public

This commit is contained in:
Eryn Wells 2024-01-29 17:12:08 -08:00
parent 52b19b87d8
commit 8aa44e56f2
5 changed files with 7 additions and 9 deletions

View file

@ -4,7 +4,7 @@
//! generating the possible moves for the king in the given position.
use super::{move_generator_declaration, MoveGeneratorInternal, MoveSet};
use crate::{r#move::Castle, Move, MoveBuilder, Position};
use crate::{r#move::Castle, Position};
use chessfriend_bitboard::BitBoard;
use chessfriend_core::{Color, Piece, PlacedPiece};
@ -52,7 +52,7 @@ impl MoveGeneratorInternal for KingMoveGenerator {
#[cfg(test)]
mod tests {
use super::*;
use crate::{assert_move_list, position, test_position, PositionBuilder};
use crate::{assert_move_list, position, test_position, Move, MoveBuilder, PositionBuilder};
use chessfriend_bitboard::bitboard;
use chessfriend_core::{piece, Square};
use std::collections::HashSet;