]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Retire history.h
[stockfish] / src / search.cpp
index e8809f149170c31ceeea0ff821cd2751932506df..aa5ef13cc933f64cc85fd2a948fe620b42c7f47c 100644 (file)
@@ -26,7 +26,6 @@
 
 #include "book.h"
 #include "evaluate.h"
-#include "history.h"
 #include "movegen.h"
 #include "movepick.h"
 #include "notation.h"
@@ -1071,13 +1070,13 @@ split_point_start: // At split points actual search starts from here
 
             // Increase history value of the cut-off move
             Value bonus = Value(int(depth) * int(depth));
-            H.add(pos.piece_moved(bestMove), to_sq(bestMove), bonus);
+            H.update(pos.piece_moved(bestMove), to_sq(bestMove), bonus);
 
             // Decrease history of all the other played non-capture moves
             for (int i = 0; i < playedMoveCount - 1; i++)
             {
                 Move m = movesSearched[i];
-                H.add(pos.piece_moved(m), to_sq(m), -bonus);
+                H.update(pos.piece_moved(m), to_sq(m), -bonus);
             }
         }
     }