Skip to content

Commit

Permalink
Add Bitboard::lsbll() asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
kz04px committed Mar 8, 2022
1 parent eeaf84d commit ca3f64f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libchess/bitboard.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,10 @@ static_assert(Bitboard{squares::H1}.adjacent() == Bitboard{0xc040});
static_assert(Bitboard{squares::A8}.adjacent() == Bitboard{0x203000000000000});
static_assert(Bitboard{squares::H8}.adjacent() == Bitboard{0x40c0000000000000});
static_assert(Bitboard{squares::D4}.adjacent() == Bitboard{0x1c141c0000});
static_assert(Bitboard{squares::A4}.lsbll() == squares::A4);
static_assert(Bitboard{squares::D4}.lsbll() == squares::D4);
static_assert(Bitboard{squares::H8}.lsbll() == squares::H8);
static_assert(Bitboard{0x1c141c0000}.lsbll() == squares::C3);

} // namespace bitboards

Expand Down

0 comments on commit ca3f64f

Please sign in to comment.