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

movegen: revert see ordering in score_captures()

It works better with MVV ordering.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2008-10-17 22:54:23 +02:00
parent c852a94009
commit 94f1b31484

View file

@ -215,9 +215,9 @@ void MovePicker::score_captures() {
{
Move m = moves[i].move;
moves[i].score = pos.see(m);
//if (moves[i].score >= 0)
// moves[i].score = move_promotion(m) ? QueenValueMidgame
// : pos.midgame_value_of_piece_on(move_to(m));
if (moves[i].score >= 0)
moves[i].score = move_promotion(m) ? QueenValueMidgame
: pos.midgame_value_of_piece_on(move_to(m));
}
}