1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-29 16:23:09 +00:00

Better comment previous patch

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2008-10-16 12:53:25 +02:00
parent b3744eb4d0
commit a930aafce0

View file

@ -257,6 +257,7 @@ void MovePicker::score_noncaptures() {
else else
moves[i].score = H.move_ordering_score(pos->piece_on(move_from(m)), m); 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) if (moves[i].score > 0)
moves[i].score += 1000; moves[i].score += 1000;