Add '*Assign' operators to 'Bitboard'

This commit is contained in:
Bruno BELANYI 2022-07-25 17:34:11 +02:00
parent 4de41a5544
commit 54d2e78954
3 changed files with 85 additions and 5 deletions

View file

@ -139,7 +139,7 @@ impl Direction {
while !board.is_empty() {
board = self.move_board(board);
res = res | board;
res |= board;
if !(board & blockers).is_empty() {
break;
}