X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovepick.cpp;h=5163e87ca67710ed14f92224075e215ae2c6d85e;hp=63f77dbaebfc14570cb4ff56408348fa4b15adb0;hb=c295599e4ad481f677b14cb0be14174b61ebff81;hpb=a010d438a2e378a82943835d49a53dfaa15c95d1 diff --git a/src/movepick.cpp b/src/movepick.cpp index 63f77dba..5163e87c 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.value(piece, to) + H.gain(piece, to); } } @@ -261,7 +253,7 @@ void MovePicker::score_evasions_or_checks() { cur->score = pos.midgame_value_of_piece_on(move_to(m)) - pos.type_of_piece_on(move_from(m)) + HistoryMax; else - cur->score = H.move_ordering_score(pos.piece_on(move_from(m)), move_to(m)); + cur->score = H.value(pos.piece_on(move_from(m)), move_to(m)); } }