aboutsummaryrefslogtreecommitdiff
path: root/src/moves.rs
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2023-02-21 14:19:34 +0300
committereug-vs <eugene@eug-vs.xyz>2023-02-21 14:48:06 +0300
commit69f3c48fb99d96f3fbc4ab49f5fb6d1d8e90e270 (patch)
tree57c53013f2742c3d05762c7fdd066f66bd631e09 /src/moves.rs
parent5e9543dcc6a012aef73d342080bfec46690b5446 (diff)
downloadchessnost-69f3c48fb99d96f3fbc4ab49f5fb6d1d8e90e270.tar.gz
refactor: split Board module into submodules
Diffstat (limited to 'src/moves.rs')
-rw-r--r--src/moves.rs4
1 files changed, 2 insertions, 2 deletions
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)]