]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Union of 2 changes that failed with good score
[stockfish] / src / search.cpp
index 7b43f64a19e63510ba69ed8dfd50e610cf3be5c0..ee2d43b87545e130a97967383d620d8f20d076a5 100644 (file)
@@ -153,8 +153,8 @@ void Search::init() {
   // Init futility move count array
   for (d = 0; d < 32; d++)
   {
-      FutilityMoveCounts[0][d] = int(3.001 + 0.3 * pow(double(d       ), 1.8)) * (d < 5 ? 4 : 3) / 4;
-      FutilityMoveCounts[1][d] = int(3.001 + 0.3 * pow(double(d + 0.98), 1.8));
+      FutilityMoveCounts[0][d] = int(3 + 0.3 * pow(double(d       ), 1.8)) * 3/4 + (2 < d && d < 5);
+      FutilityMoveCounts[1][d] = int(3 + 0.3 * pow(double(d + 0.98), 1.8));
   }
 }