From: Marco Costalba Date: Wed, 8 May 2013 21:02:08 +0000 (+0200) Subject: Merge 'passed_pawns' tweaks X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=02606a8c8360782c5c14e6a76fd7867f2cb9552d;hp=653c0527a70c3a134983519a1cf13ffbde120205 Merge 'passed_pawns' tweaks Good at both short and long TC 15+0.05 LLR: 2.96 (-2.94,2.94) Total: 28220 W: 5531 L: 5349 D: 17340 TC 60+0.05 LLR: 2.95 (-2.94,2.94) Total: 12612 W: 2221 L: 2057 D: 8334 bench: 4857939 --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index c2f025fc..94ec2b6c 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -677,8 +677,7 @@ Value do_evaluate(const Position& pos, Value& margin) { Score score = SCORE_ZERO; // Undefended minors get penalized even if not under attack - undefendedMinors = pos.pieces(Them) - & (pos.pieces(BISHOP) | pos.pieces(KNIGHT)) + undefendedMinors = pos.pieces(Them, BISHOP, KNIGHT) & ~ei.attackedBy[Them][ALL_PIECES]; if (undefendedMinors)