Permalink
Browse files

Merge branch 'mobility_mod'

bench: 4676606
  • Loading branch information...
mcostalba committed May 1, 2013
2 parents e381951 + 7323231 commit 24a4dae9fd6b59ce1ffc62dc81671c1a2ef69271
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/evaluate.cpp
View
@@ -730,7 +730,7 @@ Value do_evaluate(const Position& pos, Value& margin) {
Score score = mobility = SCORE_ZERO;
// Do not include in mobility squares protected by enemy pawns or occupied by our pieces
- const Bitboard mobilityArea = ~(ei.attackedBy[Them][PAWN] | pos.pieces(Us));
+ const Bitboard mobilityArea = ~(ei.attackedBy[Them][PAWN] | pos.pieces(Us, PAWN, KING));
score += evaluate_pieces<KNIGHT, Us, Trace>(pos, ei, mobility, mobilityArea);
score += evaluate_pieces<BISHOP, Us, Trace>(pos, ei, mobility, mobilityArea);

0 comments on commit 24a4dae

Please sign in to comment.