Make use of 'Bitboard::is_empty'
This commit is contained in:
parent
f66b0276d8
commit
659e3f1c9a
|
@ -126,7 +126,7 @@ impl Direction {
|
||||||
|
|
||||||
let mut res = Default::default();
|
let mut res = Default::default();
|
||||||
|
|
||||||
while board != Bitboard::EMPTY {
|
while !board.is_empty() {
|
||||||
board = self.move_board(board);
|
board = self.move_board(board);
|
||||||
res = res | board;
|
res = res | board;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue