if (st->capture)
{
- assert(capture != KING);
+ assert(st->capture != KING);
// Replace the captured piece
set_bit(&(byColorBB[them]), to);
if (st->capture)
{
- assert(capture != KING);
+ assert(st->capture != KING);
// Insert captured piece:
set_bit(&(byColorBB[them]), to);
// Update material. Because the move is a promotion move, we know
// that the captured piece cannot be a pawn.
- assert(capture != PAWN);
+ assert(st->capture != PAWN);
npMaterial[them] += piece_value_midgame(st->capture);
// Update piece list
Square to = move_to(m);
Square capsq = (us == WHITE)? (to - DELTA_N) : (to - DELTA_S);
- assert(to == ep_square());
+ assert(to == st->previous->epSquare);
assert(relative_rank(us, to) == RANK_6);
assert(piece_on(to) == piece_of_color_and_type(us, PAWN));
assert(piece_on(from) == EMPTY);