Make use of 'Bitboard::is_empty'

This commit is contained in:
Bruno BELANYI 2022-07-18 00:32:40 +02:00
parent 057b383f8c
commit f1f6198e5f

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;
}