X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovepick.cpp;h=066af5f95bdcf3f39b1273378397c9b92bbcbe89;hp=361644af20bf9c18be7bdd45583e969416306012;hb=a930aafce069c90349c6bf454f7e3b497fba6710;hpb=b3744eb4d0df5b9a2a78ef7de236b9a7aff7b6ca diff --git a/src/movepick.cpp b/src/movepick.cpp index 361644af..066af5f9 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -257,6 +257,7 @@ void MovePicker::score_noncaptures() { else moves[i].score = H.move_ordering_score(pos->piece_on(move_from(m)), m); + // Ensure moves in history are always sorted as first if (moves[i].score > 0) moves[i].score += 1000;