Be sure a queen capture promotion is tried in front of
an underpromotion.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
- piece_type(pos.piece_on(move_from(m)));
if (move_is_promotion(m))
- piece_type(pos.piece_on(move_from(m)));
if (move_is_promotion(m))
- cur->score += QueenValueMidgame;
+ cur->score += piece_value_midgame(Piece(promotion_piece_type(m)));
if (seeValue >= captureThreshold)
return move;
if (seeValue >= captureThreshold)
return move;
- // Losing capture, move it to the tail of the array, note
- // that move has now been already checked for pseudo legality.
+ // Losing capture, move it to the tail of the array
(--badCaptures)->move = move;
badCaptures->score = seeValue;
}
(--badCaptures)->move = move;
badCaptures->score = seeValue;
}