- e->passedPawns[WHITE] = e->passedPawns[BLACK] = 0;
- e->kingSquares[WHITE] = e->kingSquares[BLACK] = SQ_NONE;
- e->semiopenFiles[WHITE] = e->semiopenFiles[BLACK] = 0xFF;
-
- Bitboard wPawns = pos.pieces(WHITE, PAWN);
- Bitboard bPawns = pos.pieces(BLACK, PAWN);
- e->pawnAttacks[WHITE] = shift_bb<DELTA_NE>(wPawns) | shift_bb<DELTA_NW>(wPawns);
- e->pawnAttacks[BLACK] = shift_bb<DELTA_SE>(bPawns) | shift_bb<DELTA_SW>(bPawns);
-
- e->value = evaluate_pawns<WHITE>(pos, wPawns, bPawns, e)
- - evaluate_pawns<BLACK>(pos, bPawns, wPawns, e);