Constant candidate::EMPTY

source ·
pub const EMPTY: BitBoard;
Expand description

An empty bitboard. It is sometimes useful to use !EMPTY to get the universe of squares.

    use candidate::EMPTY;

    assert_eq!(EMPTY.count(), 0);

    assert_eq!((!EMPTY).count(), 64);