]> git.sesse.net Git - stockfish/blobdiff - src/evaluate.cpp
Keep more pawns and pieces when attacking
[stockfish] / src / evaluate.cpp
index fe1366147f6afa4226a531439a55944760ad8b85..1366d0fb2ab104abe86893bd942f94da524a78a8 100644 (file)
@@ -1091,8 +1091,9 @@ Value Eval::evaluate(const Position& pos) {
       // Scale and shift NNUE for compatibility with search and classical evaluation
       auto  adjusted_NNUE = [&]()
       {
-
-         int scale = 903 + 28 * pos.count<PAWN>() + 28 * pos.non_pawn_material() / 1024;
+         int scale =   903
+                     + 32 * pos.count<PAWN>()
+                     + 32 * pos.non_pawn_material() / 1024;
 
          Value nnue = NNUE::evaluate(pos, true) * scale / 1024;