Make use of 'Bitboard::is_empty'
This commit is contained in:
parent
057b383f8c
commit
f1f6198e5f
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue