]> git.sesse.net Git - stockfish/blobdiff - src/movepick.cpp
Partially restore HistoryMax
[stockfish] / src / movepick.cpp
index 9b274d59ff6be53d8f5948ac85189df4416ccb21..aa6f7c19bc9ac9aa45b5368133d7010f155f32ee 100644 (file)
@@ -247,10 +247,10 @@ void MovePicker::score_evasions() {
   {
       m = cur->move;
       if ((seeScore = pos.see_sign(m)) < 0)
-          cur->score = seeScore - HistoryMax; // Be sure are at the bottom
+          cur->score = seeScore - History::MaxValue; // Be sure we are at the bottom
       else if (pos.move_is_capture(m))
           cur->score =  pos.midgame_value_of_piece_on(move_to(m))
-                      - pos.type_of_piece_on(move_from(m)) + HistoryMax;
+                      - pos.type_of_piece_on(move_from(m)) + History::MaxValue;
       else
           cur->score = H.value(pos.piece_on(move_from(m)), move_to(m));
   }