else if (!neighbours)
{
- score -= Isolated
- + WeakUnopposed * !opposed;
-
- if ( (ourPawns & forward_file_bb(Them, s))
- && popcount(opposed) == 1
+ if ( opposed
+ && (ourPawns & forward_file_bb(Them, s))
&& !(theirPawns & adjacent_files_bb(s)))
score -= Doubled;
+ else
+ score -= Isolated
+ + WeakUnopposed * !opposed;
}
else if (backward)