mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 00:56:39 +08: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:
@@ -215,9 +215,9 @@ void MovePicker::score_captures() {
|
|||||||
{
|
{
|
||||||
Move m = moves[i].move;
|
Move m = moves[i].move;
|
||||||
moves[i].score = pos.see(m);
|
moves[i].score = pos.see(m);
|
||||||
//if (moves[i].score >= 0)
|
if (moves[i].score >= 0)
|
||||||
// moves[i].score = move_promotion(m) ? QueenValueMidgame
|
moves[i].score = move_promotion(m) ? QueenValueMidgame
|
||||||
// : pos.midgame_value_of_piece_on(move_to(m));
|
: pos.midgame_value_of_piece_on(move_to(m));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user