It is more clear and also more correct because we
consider enemy pawns only in fornt of us and not just
on our file.
Very small functional change, almost not measurable, but
keep the patch for documenting purposes.
Spotted by Marek Kwiatkowski.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
if (isolated)
{
value -= IsolatedPawnPenalty[f];
- if (!(theirPawns & file_bb(f)))
+ if (!opposed)
value -= IsolatedPawnPenalty[f] / 2;
}
if (doubled)
if (backward)
{
value -= BackwardPawnPenalty[f];
- if (!(theirPawns & file_bb(f)))
+ if (!opposed)
value -= BackwardPawnPenalty[f] / 2;
}
if (chain)