Add magic bitboard generation
This commit is contained in:
parent
3410ba518e
commit
d268db38c1
4 changed files with 75 additions and 3 deletions
|
|
@ -3,7 +3,6 @@ use crate::movegen::bishop::bishop_moves;
|
|||
use crate::movegen::rook::rook_moves;
|
||||
|
||||
/// Compute the relevancy mask for a bishop on a given [Square].
|
||||
#[allow(unused)] // FIXME: remove once used
|
||||
pub fn generate_bishop_mask(square: Square) -> Bitboard {
|
||||
let rays = bishop_moves(square, Bitboard::EMPTY);
|
||||
|
||||
|
|
@ -16,7 +15,6 @@ pub fn generate_bishop_mask(square: Square) -> Bitboard {
|
|||
}
|
||||
|
||||
/// Compute the relevancy mask for a rook on a given [Square].
|
||||
#[allow(unused)] // FIXME: remove once used
|
||||
pub fn generate_rook_mask(square: Square) -> Bitboard {
|
||||
let rays = rook_moves(square, Bitboard::EMPTY);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue