- // Bonus for safe slider threats on the next move toward enemy queen
- safeThreats = ~pos.pieces(Us) & ~attackedBy2[Them] & attackedBy2[Us];
- b = (attackedBy[Us][BISHOP] & attackedBy[Them][QUEEN_DIAGONAL])
- | (attackedBy[Us][ROOK ] & attackedBy[Them][QUEEN] & ~attackedBy[Them][QUEEN_DIAGONAL]);
-
- score += ThreatOnQueen * popcount(b & safeThreats);
-
- // Bonus for knight threats on the next moves against enemy queen