[bitboard, board] Make BitBoard::EMPTY and BitBoard::FULL public

Deprecate the methods.

I think I'm undoing a change I made earlier. 🙃
This commit is contained in:
Eryn Wells 2025-06-29 09:18:44 -07:00
parent 8db533cb52
commit e7fd65672d
4 changed files with 9 additions and 7 deletions

View file

@ -43,13 +43,15 @@ macro_rules! moves_getter {
}
impl BitBoard {
const EMPTY: BitBoard = BitBoard(u64::MIN);
const FULL: BitBoard = BitBoard(u64::MAX);
pub const EMPTY: BitBoard = BitBoard(u64::MIN);
pub const FULL: BitBoard = BitBoard(u64::MAX);
#[deprecated(note = "Use BitBoard::EMPTY instead")]
pub const fn empty() -> BitBoard {
Self::EMPTY
}
#[deprecated(note = "Use BitBoard::FULL instead")]
pub const fn full() -> BitBoard {
Self::FULL
}