X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovepick.cpp;h=d4242a300de7620e5f58665cb20c7e5ff0aa102c;hp=52c1f728ac70b42766ec14bd22d74d3c8017d9f3;hb=db1b0bfa1d8391281e5e0b1f93564a1e52c41ed2;hpb=8189ae9e1c35f2e775709a5920524633e7516581 diff --git a/src/movepick.cpp b/src/movepick.cpp index 52c1f728..d4242a30 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -270,10 +270,11 @@ void MovePicker::score_noncaptures() { else hs = H.move_ordering_score(pos.piece_on(move_from(m)), m); - // Ensure moves in history are always sorted as first + // Ensure history is always preferred to pst if (hs > 0) hs += 1000; + // pst based scoring moves[i].score = hs + pos.mg_pst_delta(m); } } @@ -292,7 +293,6 @@ void MovePicker::score_evasions() { } else moves[i].score = H.move_ordering_score(pos.piece_on(move_from(m)), m); } - // FIXME try psqt also here } void MovePicker::score_qcaptures() {