From 66ce8ad5fd0e67904ca96dd9ac58f2e512a1f380 Mon Sep 17 00:00:00 2001 From: hxim Date: Thu, 4 Jan 2018 22:31:30 +0100 Subject: [PATCH] Remove ThreatByHangingPawn bonus (#1356) * no ThreatByHangingPawn * bench: 4919682 --- src/evaluate.cpp | 4 ---- 1 file changed, 4 deletions(-) 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 -- 2.39.2