]> git.sesse.net Git - stockfish/blobdiff - src/pawns.cpp
Fine tune previous patch
[stockfish] / src / pawns.cpp
index 39bd689f2e30c921c60030a5287d5f6ec8b84489..5a0e5d21e92ec864f9581d986e0f0051d5a92085 100644 (file)
@@ -58,7 +58,7 @@ namespace {
     S(34,68), S(83,166), S(0, 0), S( 0, 0) };
 
   // Bonus for file distance of the two outermost pawns
-  const Score PawnsFileSpan = S(0, 10);
+  const Score PawnsFileSpan = S(0, 15);
 
   // Weakness of our pawn shelter in front of the king indexed by [rank]
   const Value ShelterWeakness[RANK_NB] =
@@ -188,7 +188,7 @@ namespace {
     // to file distance between left and right outermost pawns.
     if (pos.count<PAWN>(Us) > 1)
     {
-        b = ~e->semiopenFiles[Us] & 0xFF;
+        b = e->semiopenFiles[Us] ^ 0xFF;
         value += PawnsFileSpan * int(msb(b) - lsb(b));
     }