X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=aa5ef13cc933f64cc85fd2a948fe620b42c7f47c;hp=e8809f149170c31ceeea0ff821cd2751932506df;hb=53051eefc741586f72ccbf9a765592c4ca6030bd;hpb=9f94d2280110a1ba5eb9eb15b0756883037a817d diff --git a/src/search.cpp b/src/search.cpp index e8809f14..aa5ef13c 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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); } } }