]> git.sesse.net Git - stockfish/blobdiff - src/evaluate.cpp
Remove pawn count in space() calculation #2139
[stockfish] / src / evaluate.cpp
index 5750d82a7281bbd9ff91f6b22f137b9e9fac0600..d1a8ffd31fb4ab954ed3849bfa927d58bde5c3bf 100644 (file)
@@ -719,9 +719,7 @@ namespace {
     behind |= shift<Down+Down>(behind);
 
     int bonus = popcount(safe) + popcount(behind & safe);
-    int weight =  pos.count<ALL_PIECES>(Us)
-               - (16 - pos.count<PAWN>()) / 4;
-
+    int weight = pos.count<ALL_PIECES>(Us) - 1;
     Score score = make_score(bonus * weight * weight / 16, 0);
 
     if (T)