added constructor for quiet moves in bitboard::bitmove.rs

This commit is contained in:
Varga Dávid Lajos
2025-11-18 17:17:11 +01:00
parent 57af3aaae3
commit c420d8b3dd

View File

@@ -5,4 +5,17 @@ pub struct BitMove {
pub from_square: u8,
pub to_square: u8,
pub promotion_piece: Option<u8>
}
impl BitMove {
#[inline]
pub fn quiet(from: u8, to: u8, promotion_piece: Option<u8>) -> Self {
return Self {
move_type: 0,
from_square: from,
to_square: to,
promotion_piece: promotion_piece
};
}
}