+ // Threat[by minor/by rook][attacked PieceType] contains
+ // bonuses according to which piece type attacks which one.
+ // Attacks on lesser pieces which are pawn-defended are not considered.
+ const Score Threat[][PIECE_TYPE_NB] = {
+ { S(0, 0), S(0, 33), S(45, 43), S(46, 47), S(72,107), S(48,118) }, // by Minor
+ { S(0, 0), S(0, 25), S(40, 62), S(40, 59), S( 0, 34), S(35, 48) } // by Rook
+ };
+
+ // ThreatByKing[on one/on many] contains bonuses for King attacks on
+ // pawns or pieces which are not pawn-defended.
+ const Score ThreatByKing[2] = { S(3, 62), S(9, 138) };
+