Skip to content

Commit 2660a91

Browse files
protonspringsnicolet
authored andcommitted
Remove condition for pawn threats
It appears as though removing squares that are already attacked by our pawns can be removed. STC LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 51242 W: 11503 L: 11440 D: 28299 http://tests.stockfishchess.org/tests/view/5b58b5a40ebc5902bdb88f52 LTC LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 35246 W: 6063 L: 5966 D: 23217 http://tests.stockfishchess.org/tests/view/5b58f8e20ebc5902bdb8959b How to continue after this patch: there is now a slight semantic overlap between the ThreatByPawnPush and the ThreatBySafePawn bonuses, so hand-tuning either of these, or both at the same time, is natural. Closes #1702 Bench 4734881
1 parent a4eda30 commit 2660a91

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/evaluate.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -586,10 +586,7 @@ namespace {
586586
& (attackedBy[Us][ALL_PIECES] | ~attackedBy[Them][ALL_PIECES]);
587587

588588
// Bonus for safe pawn threats on the next move
589-
b = pawn_attacks_bb<Us>(b)
590-
& pos.pieces(Them)
591-
& ~attackedBy[Us][PAWN];
592-
589+
b = pawn_attacks_bb<Us>(b) & pos.pieces(Them);
593590
score += ThreatByPawnPush * popcount(b);
594591

595592
// Bonus for threats on the next moves against enemy queen

0 commit comments

Comments
 (0)