X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovepick.cpp;h=20681108c0bd7ca8e3db1c94254dcd3b10d96236;hp=63f77dbaebfc14570cb4ff56408348fa4b15adb0;hb=40ad5194aa08aa8baaa9c6b8625b17fea73a8074;hpb=f5ef5632ffbf0b369c7b5020bc624e1d237aec1e diff --git a/src/movepick.cpp b/src/movepick.cpp index 63f77dba..20681108 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -221,7 +221,6 @@ void MovePicker::score_noncaptures() { Move m; Piece piece; Square from, to; - int hs; for (MoveStack* cur = moves; cur != lastMove; cur++) { @@ -229,14 +228,7 @@ void MovePicker::score_noncaptures() { from = move_from(m); to = move_to(m); piece = pos.piece_on(from); - hs = H.move_ordering_score(piece, to); - - // Ensure history has always highest priority - if (hs > 0) - hs += 10000; - - // Gain table based scoring - cur->score = hs + 16 * H.gain(piece, to); + cur->score = H.move_ordering_score(piece, to); } }