Because pos.count<ALL_PIECES>(Us) was always zero,
rewrite the formula as if this would still be
the case.
bench:
8510004
- // Increase the bonus if we have more non-pawn pieces
- if (pos.count<ALL_PIECES>( Us) - pos.count<PAWN>( Us) >
- pos.count<ALL_PIECES>(Them) - pos.count<PAWN>(Them))
+ if (pos.count<PAWN>(Us) < pos.count<PAWN>(Them))
ebonus += ebonus / 4;
score += make_score(mbonus, ebonus);
ebonus += ebonus / 4;
score += make_score(mbonus, ebonus);