X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovepick.cpp;h=aa6f7c19bc9ac9aa45b5368133d7010f155f32ee;hp=9b274d59ff6be53d8f5948ac85189df4416ccb21;hb=877b468e3e8a3b7f7482266007237c6974f7f282;hpb=57b3ca916fdf12ad4ad3dfdcd215379e908b12be diff --git a/src/movepick.cpp b/src/movepick.cpp index 9b274d59..aa6f7c19 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -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)); }