]> git.sesse.net Git - stockfish/commitdiff
Simplify move generation (2/2)
authorbmc4 <bmc4@cin.ufpe.br>
Tue, 16 Mar 2021 15:21:24 +0000 (12:21 -0300)
committerStéphane Nicolet <cassio@free.fr>
Tue, 16 Mar 2021 21:34:23 +0000 (22:34 +0100)
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 https://github.com/official-stockfish/Stockfish/pull/3399

No functional change

src/movegen.cpp

index d8c4370ac83505334f2e0a550dc8b8329a825ec6..5dbc37ced3975966ca373595c13e92a4b4834d9b 100644 (file)
@@ -63,7 +63,7 @@ namespace {
     Bitboard pawnsOn7    = pos.pieces(Us, PAWN) &  TRank7BB;
     Bitboard pawnsNotOn7 = pos.pieces(Us, PAWN) & ~TRank7BB;
 
-    Bitboard enemies = (Type == EVASIONS ? pos.pieces(Them) & target:
+    Bitboard enemies = (Type == EVASIONS ? pos.checkers():
                         Type == CAPTURES ? target : pos.pieces(Them));
 
     // Single and double pawn pushes, no promotions