diff options
author | eug-vs <eugene@eug-vs.xyz> | 2023-01-26 17:52:34 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2023-01-26 17:52:34 +0300 |
commit | e7acc49c4891618f9a85427689f34eb807556e9c (patch) | |
tree | e8272b12919370666078843ea88ae0ebd6be7be8 /src/moves.rs | |
parent | 5645b7acf228d9f8127ad834023afc727ccb4f88 (diff) | |
download | chessnost-e7acc49c4891618f9a85427689f34eb807556e9c.tar.gz |
feat: implement promotions
Diffstat (limited to 'src/moves.rs')
-rw-r--r-- | src/moves.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/moves.rs b/src/moves.rs index 66a3be1..87b7c4b 100644 --- a/src/moves.rs +++ b/src/moves.rs @@ -1,4 +1,4 @@ -use crate::{square::Square, bitboard::print}; +use crate::{square::Square, bitboard::print, board::PieceType}; #[derive(Debug, Clone, PartialEq, Eq, Copy)] pub enum MoveKind { @@ -7,6 +7,7 @@ pub enum MoveKind { Castle, EnPassant, DoublePush, + Promotion(PieceType), } #[derive(Debug, Clone, Copy, PartialEq, Eq)] |