Skip to content

Commit 43f67ea

Browse files
committed
Merge mobility area tweak
A nice improvment. Was good at 15+0.05 LLR: 2.96 (-2.94,2.94) Total: 10731 W: 2176 L: 2040 D: 6515 And at 60"+0.05 LLR: 2.96 (-2.94,2.94) Total: 10601 W: 1968 L: 1810 D: 6823 bench: 4676606
2 parents d44ac0a + 7323231 commit 43f67ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/evaluate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ Value do_evaluate(const Position& pos, Value& margin) {
730730
Score score = mobility = SCORE_ZERO;
731731

732732
// Do not include in mobility squares protected by enemy pawns or occupied by our pieces
733-
const Bitboard mobilityArea = ~(ei.attackedBy[Them][PAWN] | pos.pieces(Us));
733+
const Bitboard mobilityArea = ~(ei.attackedBy[Them][PAWN] | pos.pieces(Us, PAWN, KING));
734734

735735
score += evaluate_pieces<KNIGHT, Us, Trace>(pos, ei, mobility, mobilityArea);
736736
score += evaluate_pieces<BISHOP, Us, Trace>(pos, ei, mobility, mobilityArea);

0 commit comments

Comments
 (0)