- // Find the squares that opponent attacks in our king flank, and the squares
- // which are attacked twice in that flank.
- kingFlank = KingFlank[file_of(ksq)];
- b1 = attackedBy[Them][ALL_PIECES] & kingFlank & Camp;
- b2 = b1 & attackedBy2[Them];
-
- int tropism = popcount(b1) + popcount(b2);
-
- // Main king safety evaluation
- int kingDanger = 0;
- unsafeChecks = 0;
-