Skip to content

Commit 830f597

Browse files
BM123499snicolet
authored andcommitted
Simplify move generation (2/2)
STC: LLR: 2.97 (-2.94,2.94) {-1.25,0.25} Total: 39352 W: 3551 L: 3493 D: 32308 Ptnml(0-2): 143, 2695, 13928, 2781, 129 https://tests.stockfishchess.org/tests/view/6050007a2433018de7a38bbb LTC: LLR: 2.96 (-2.94,2.94) {-0.75,0.25} Total: 44944 W: 1629 L: 1596 D: 41719 Ptnml(0-2): 22, 1319, 19762, 1342, 27 https://tests.stockfishchess.org/tests/view/60500e892433018de7a38bc4 Closes #3399 No functional change
1 parent 4b50955 commit 830f597

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/movegen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ namespace {
6363
Bitboard pawnsOn7 = pos.pieces(Us, PAWN) & TRank7BB;
6464
Bitboard pawnsNotOn7 = pos.pieces(Us, PAWN) & ~TRank7BB;
6565

66-
Bitboard enemies = (Type == EVASIONS ? pos.pieces(Them) & target:
66+
Bitboard enemies = (Type == EVASIONS ? pos.checkers():
6767
Type == CAPTURES ? target : pos.pieces(Them));
6868

6969
// Single and double pawn pushes, no promotions

0 commit comments

Comments
 (0)