Revert "Count passed pawns in asymmetry measure"
authorStéphane Nicolet <cassio@free.fr>
Sun, 25 Feb 2018 14:12:19 +0000 (15:12 +0100)
committerStéphane Nicolet <cassio@free.fr>
Sun, 25 Feb 2018 14:12:19 +0000 (15:12 +0100)
src/pawns.cpp

index 5c33577..a1b5332 100644 (file)
@@ -164,9 +164,6 @@ namespace {
                     e->passedPawns[Us] |= s;
         }
 
-        if (e->passedPawns[Us] & s)
-            e->asymmetry++;
-
         // Score this pawn
         if (supported | phalanx)
             score += Connected[opposed][bool(phalanx)][popcount(supported)][relative_rank(Us, s)];
@@ -223,11 +220,10 @@ Entry* probe(const Position& pos) {
       return e;
 
   e->key = key;
-  e->asymmetry = 0;
   e->scores[WHITE] = evaluate<WHITE>(pos, e);
   e->scores[BLACK] = evaluate<BLACK>(pos, e);
-  e->asymmetry += popcount(e->semiopenFiles[WHITE] ^ e->semiopenFiles[BLACK]);
-  e->openFiles  = popcount(e->semiopenFiles[WHITE] & e->semiopenFiles[BLACK]);
+  e->asymmetry = popcount(e->semiopenFiles[WHITE] ^ e->semiopenFiles[BLACK]);
+  e->openFiles = popcount(e->semiopenFiles[WHITE] & e->semiopenFiles[BLACK]);
 
   return e;
 }