Make use of 'Bitboard::is_empty'

This commit is contained in:
Bruno BELANYI 2022-07-18 00:32:40 +02:00
parent f66b0276d8
commit 659e3f1c9a

View file

@ -126,7 +126,7 @@ impl Direction {
let mut res = Default::default();
while board != Bitboard::EMPTY {
while !board.is_empty() {
board = self.move_board(board);
res = res | board;
}