+ // Bonus for knight threats on the next moves against enemy queen
+ if (pos.count<QUEEN>(Them) == 1)
+ {
+ b = pos.attacks_from<KNIGHT>(pos.square<QUEEN>(Them))
+ & attackedBy[Us][KNIGHT]
+ & ~pos.pieces(Us, PAWN, KING)
+ & ~stronglyProtected;
+
+ score += KnightOnQueen * popcount(b);
+ }
+