]> git.sesse.net Git - stockfish/blobdiff - src/movepick.h
Do check analysis later in the game
[stockfish] / src / movepick.h
index 1a81dbde7b21a2bc4fe3535dfb7fe2ccbf71a36e..97b1b3abb7f1aaeded105cb068e47b6ceab15c69 100644 (file)
@@ -43,10 +43,10 @@ struct HistoryStats {
 
     const int D = 324;
 
-    assert(abs(int(v)) <= D); // Consistency check for below formula
+    assert(abs(v) <= D); // Consistency check for below formula
 
-    table[c][from][to] -= table[c][from][to] * abs(int(v)) / D;
-    table[c][from][to] += int(v) * 32;
+    table[c][from][to] -= table[c][from][to] * abs(v) / D;
+    table[c][from][to] += v * 32;
   }
 
 private:
@@ -70,10 +70,10 @@ struct Stats {
 
     const int D = 936;
 
-    assert(abs(int(v)) <= D); // Consistency check for below formula
+    assert(abs(v) <= D); // Consistency check for below formula
 
-    table[pc][to] -= table[pc][to] * abs(int(v)) / D;
-    table[pc][to] += int(v) * 32;
+    table[pc][to] -= table[pc][to] * abs(v) / D;
+    table[pc][to] += v * 32;
   }
 
 private:
@@ -111,6 +111,7 @@ private:
 
   const Position& pos;
   const Search::Stack* ss;
+  Move killers[2];
   Move countermove;
   Depth depth;
   Move ttMove;