Skip to content

Commit cf7ac9a

Browse files
committed
Remove superfluous masking with BB_ALL
1 parent ddeb4e6 commit cf7ac9a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

chess/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def shift_down_right(b):
299299
mask |= shift_2_right(shift_up(bb_square))
300300
mask |= shift_2_left(shift_down(bb_square))
301301
mask |= shift_2_right(shift_down(bb_square))
302-
BB_KNIGHT_ATTACKS.append(mask & BB_ALL)
302+
BB_KNIGHT_ATTACKS.append(mask)
303303

304304
BB_KING_ATTACKS = []
305305

@@ -313,7 +313,7 @@ def shift_down_right(b):
313313
mask |= shift_up_right(bb_square)
314314
mask |= shift_down_left(bb_square)
315315
mask |= shift_down_right(bb_square)
316-
BB_KING_ATTACKS.append(mask & BB_ALL)
316+
BB_KING_ATTACKS.append(mask)
317317

318318
BB_PAWN_ATTACKS = [[], []]
319319

0 commit comments

Comments
 (0)