diff --git a/engine/src/bitboard/bitmove.rs b/engine/src/bitboard/bitmove.rs index 4b0bb17..11510f9 100644 --- a/engine/src/bitboard/bitmove.rs +++ b/engine/src/bitboard/bitmove.rs @@ -5,4 +5,17 @@ pub struct BitMove { pub from_square: u8, pub to_square: u8, pub promotion_piece: Option +} + +impl BitMove { + + #[inline] + pub fn quiet(from: u8, to: u8, promotion_piece: Option) -> Self { + return Self { + move_type: 0, + from_square: from, + to_square: to, + promotion_piece: promotion_piece + }; + } } \ No newline at end of file