Bitboard b, bb;
Square s;
Score score = SCORE_ZERO;
+ int mob;
attackedBy[Us][Pt] = 0;
kingAttacksCount[Us] += popcount(b & attackedBy[Them][KING]);
}
- int mob = popcount(b & mobilityArea[Us]);
+ mob = (Pt == KNIGHT || Pt == BISHOP) ? popcount(b & mobilityArea[Us] & ~pos.pieces(Us, QUEEN))
+ : popcount(b & mobilityArea[Us]);
mobility[Us] += MobilityBonus[Pt - 2][mob];