S(34,68), S(83,166), S(0, 0), S( 0, 0) };
// Bonus for file distance of the two outermost pawns
- const Score PawnsFileSpan = S(0, 10);
+ const Score PawnsFileSpan = S(0, 15);
// Weakness of our pawn shelter in front of the king indexed by [rank]
const Value ShelterWeakness[RANK_NB] =
// to file distance between left and right outermost pawns.
if (pos.count<PAWN>(Us) > 1)
{
- b = ~e->semiopenFiles[Us] & 0xFF;
+ b = e->semiopenFiles[Us] ^ 0xFF;
value += PawnsFileSpan * int(msb(b) - lsb(b));
}