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

This commit is contained in:
Varga Dávid Lajos
2025-11-18 17:24:11 +01:00
parent 7b9c1edbab
commit e1f4ae717e

View File

@@ -27,6 +27,15 @@ impl BitMove {
promotion_piece: promotion_piece
};
}
#[inline]
pub fn castle(from: u8, to: u8) -> Self {
return Self {
move_type: BitMoveType::Castle,
from_square: from,
to_square: to,
promotion_piece: None
};
}
}
pub enum BitMoveType {