mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 01:27:16 +08:00
Order the recaptures by MVV/LVA
Almost no functional change because multiple recaptures to same square are very rare, but neverthless it seems the correct thing to do. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -350,7 +350,7 @@ Move MovePicker::next_move() {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case CAPTURES_S6:
|
case CAPTURES_S6:
|
||||||
move = (curMove++)->move;
|
move = pick_best(curMove++, lastMove)->move;
|
||||||
if (to_sq(move) == recaptureSquare)
|
if (to_sq(move) == recaptureSquare)
|
||||||
return move;
|
return move;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user