Remove ThreatByHangingPawn bonus (#1356)
authorhxim <hxim.jo@gmail.com>
Thu, 4 Jan 2018 21:31:30 +0000 (22:31 +0100)
committerMarco Costalba <mcostalba@users.noreply.github.com>
Thu, 4 Jan 2018 21:31:30 +0000 (22:31 +0100)
* no ThreatByHangingPawn

* bench: 4919682

src/evaluate.cpp

index c5375a8ec428a4706d972f696a69b2dac11c4165..fa3b0a720b2face4a2ac66d6085370f3b8e77e43 100644 (file)
@@ -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<Right>(b) | shift<Left>(b)) & weak;
 
         score += ThreatBySafePawn * popcount(safeThreats);
-
-        if (weak ^ safeThreats)
-            score += ThreatByHangingPawn;
     }
 
     // Squares strongly protected by the opponent, either because they attack the