- // given color which attack a square adjacent to the enemy king. The weights
- // of the individual piece types are given by the variables QueenAttackWeight,
- // RookAttackWeight, BishopAttackWeight and KnightAttackWeight in evaluate.cpp
- int kingAttackersWeight[2];
-
- // kingZoneAttacksCount[color] is the number of attacks to squares directly
- // adjacent to the king of the given color. Pieces which attack more
- // than one square are counted multiple times. For instance, if black's
+ // given color which attack a square in the kingRing of the enemy king. The
+ // weights of the individual piece types are given by the variables
+ // QueenAttackWeight, RookAttackWeight, BishopAttackWeight and
+ // KnightAttackWeight in evaluate.cpp
+ int kingAttackersWeight[COLOR_NB];
+
+ // kingAdjacentZoneAttacksCount[color] is the number of attacks to squares
+ // directly adjacent to the king of the given color. Pieces which attack
+ // more than one square are counted multiple times. For instance, if black's