phalanx = neighbours & rank_bb(s);
support = neighbours & rank_bb(s - Up);
- e->blockedCount[Us] += bool(blocked);
+ e->blockedCount[Us] += blocked || more_than_one(leverPush);
// A pawn is backward when it is behind all pawns of the same color on
// the adjacent files and cannot safely advance.
// Score this pawn
if (support | phalanx)
{
- int v = Connected[r] * (2 + bool(phalanx) - bool(opposed))
+ int v = Connected[r] * (4 + 2 * bool(phalanx) - 2 * bool(opposed) - bool(blocked)) / 2
+ 21 * popcount(support);
score += make_score(v, v * (r - 2) / 4);