- // pieces threatened by pieces of lesser material value
- threatened = (pos.pieces(us, QUEEN) & threatenedByRook)
- | (pos.pieces(us, ROOK) & threatenedByMinor)
- | (pos.pieces(us, KNIGHT, BISHOP) & threatenedByPawn);
+ // Pieces threatened by pieces of lesser material value
+ threatenedPieces = (pos.pieces(us, QUEEN) & threatenedByRook)
+ | (pos.pieces(us, ROOK) & threatenedByMinor)
+ | (pos.pieces(us, KNIGHT, BISHOP) & threatenedByPawn);