]> git.sesse.net Git - stockfish/blobdiff - src/evaluate.cpp
simplified forward ranks.
[stockfish] / src / evaluate.cpp
index 5ceb9ae145cab0234ac8127c7ec3ea7868670bc5..95729e4aade6bea4d01a3fe776116aa91cc37c3d 100644 (file)
@@ -557,10 +557,7 @@ namespace {
 
         score += Hanging * popcount(weak & ~attackedBy[Them][ALL_PIECES]);
 
-        // Bonus for overload (non-pawn enemies attacked once or more and defended exactly once)
-        b =  nonPawnEnemies
-           & attackedBy[Us][ALL_PIECES]
-           & attackedBy[Them][ALL_PIECES] & ~attackedBy2[Them];
+        b =  weak & nonPawnEnemies & attackedBy[Them][ALL_PIECES];
         score += Overload * popcount(b);
     }