- 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;
- // 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;
}