X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=9739a0018ab24861f5fea5d811cd3bd2ad2b3823;hp=d00b862fee37378e7b170d38cd2a652b8c5da75a;hb=d30994ecd54bf96db88016fb6d92ff2c4614bc2e;hpb=e9e5f72c7440e6c9162a9578ae59fa2b75faf5f4 diff --git a/src/evaluate.cpp b/src/evaluate.cpp index d00b862f..9739a001 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -392,8 +392,8 @@ namespace { | ei.attackedBy[Us][QUEEN]); // ... and those which are not defended at all in the larger king ring - b = ei.attackedBy[Them][ALL_PIECES] & ~ei.attackedBy[Us][ALL_PIECES] - & ei.kingRing[Us] & ~pos.pieces(Them); + b = ei.attackedBy[Them][ALL_PIECES] & ~ei.attackedBy[Us][ALL_PIECES] + & ei.kingRing[Us] & ~pos.pieces(Them); // Initialize the 'attackUnits' variable, which is used later on as an // index into the KingDanger[] array. The initial value is based on the @@ -614,9 +614,6 @@ namespace { mbonus += rr + r * 2, ebonus += rr + r * 2; } // rr != 0 - if (pos.count(Us) < pos.count(Them)) - ebonus += ebonus / 4; - score += make_score(mbonus, ebonus) + PassedFile[file_of(s)]; }