From 69f3c48fb99d96f3fbc4ab49f5fb6d1d8e90e270 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Tue, 21 Feb 2023 14:19:34 +0300 Subject: refactor: split Board module into submodules --- src/moves.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/moves.rs') diff --git a/src/moves.rs b/src/moves.rs index 58fb979..858fe43 100644 --- a/src/moves.rs +++ b/src/moves.rs @@ -1,4 +1,4 @@ -use crate::{square::Square, bitboard::BitboardFns, board::PieceType}; +use crate::{square::Square, bitboard::BitboardFns, board::piece::Piece}; #[derive(Debug, Clone, PartialEq, Eq, Copy)] pub enum MoveKind { @@ -7,7 +7,7 @@ pub enum MoveKind { Castle, EnPassant, DoublePush, - Promotion(PieceType), + Promotion(Piece), } #[derive(Debug, Clone, Copy, PartialEq, Eq)] -- cgit v1.2.3