]> git.sesse.net Git - stockfish/blobdiff - src/pawns.cpp
Remove BlockedStorm array
[stockfish] / src / pawns.cpp
index 98e13f8373af1b8d6d9827d1f4ea667027d40a8d..ea0dffc72ba34c738537cedd18f6e3797540407c 100644 (file)
@@ -58,10 +58,6 @@ namespace {
     { V(-10), V(-14), V( 90), V(15), V( 2), V( -7), V(-16) }
   };
 
-  // Danger of blocked enemy pawns storming our king, by rank
-  constexpr Value BlockedStorm[RANK_NB] =
-    { V(0), V(0), V(66), V(6), V(5), V(1), V(15) };
-
   #undef S
   #undef V
 
@@ -225,7 +221,7 @@ Value Entry::evaluate_shelter(const Position& pos, Square ksq) {
 
       int d = std::min(f, ~f);
       safety += ShelterStrength[d][ourRank];
-      safety -= (ourRank && (ourRank == theirRank - 1)) ? BlockedStorm[theirRank]
+      safety -= (ourRank && (ourRank == theirRank - 1)) ? 66 * (theirRank == RANK_3) 
                                                         : UnblockedStorm[d][theirRank];
   }