From: hxim Date: Thu, 4 Jan 2018 21:31:30 +0000 (+0100) Subject: Remove ThreatByHangingPawn bonus (#1356) X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=66ce8ad5fd0e67904ca96dd9ac58f2e512a1f380 Remove ThreatByHangingPawn bonus (#1356) * no ThreatByHangingPawn * bench: 4919682 --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index c5375a8e..fa3b0a72 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -220,7 +220,6 @@ namespace { const Score WeakQueen = S( 50, 10); const Score CloseEnemies = S( 7, 0); const Score PawnlessFlank = S( 20, 80); - const Score ThreatByHangingPawn = S( 71, 61); const Score ThreatBySafePawn = S(192,175); const Score ThreatByRank = S( 16, 3); const Score Hanging = S( 48, 27); @@ -543,9 +542,6 @@ namespace { safeThreats = (shift(b) | shift(b)) & weak; score += ThreatBySafePawn * popcount(safeThreats); - - if (weak ^ safeThreats) - score += ThreatByHangingPawn; } // Squares strongly protected by the opponent, either because they attack the