1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 08:43:09 +00: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:
Marco Costalba 2012-01-22 11:19:44 +01:00
parent 6f6be95bad
commit ec9b037e5f

View file

@ -350,7 +350,7 @@ Move MovePicker::next_move() {
break;
case CAPTURES_S6:
move = (curMove++)->move;
move = pick_best(curMove++, lastMove)->move;
if (to_sq(move) == recaptureSquare)
return move;
break;