make bitboards public
This commit is contained in:
parent
5d1fa02280
commit
f45a384a96
3 changed files with 28 additions and 20 deletions
|
|
@ -161,7 +161,7 @@ impl File {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub(crate) const fn bitboard(self) -> Bitboard {
|
||||
pub const fn bitboard(self) -> Bitboard {
|
||||
Bitboard(0x0101010101010101 << (self as u8))
|
||||
}
|
||||
}
|
||||
|
|
@ -256,7 +256,7 @@ impl Rank {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub(crate) const fn bitboard(self) -> Bitboard {
|
||||
pub const fn bitboard(self) -> Bitboard {
|
||||
Bitboard(0xFF << ((self as u64) << 3))
|
||||
}
|
||||
}
|
||||
|
|
@ -340,7 +340,7 @@ impl Square {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub(crate) const fn bitboard(self) -> Bitboard {
|
||||
pub const fn bitboard(self) -> Bitboard {
|
||||
Bitboard(1 << self as u8)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue