mirror of
https://github.com/sockspls/badfish
synced 2025-07-11 11:39:15 +00:00
Tweak Mobility Area
Only consider pawns and the king as restricting.
This commit is contained in:
parent
156635749b
commit
7323231786
1 changed files with 1 additions and 1 deletions
|
@ -690,7 +690,7 @@ Value do_evaluate(const Position& pos, Value& margin, Info& ei) {
|
|||
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);
|
||||
|
|
Loading…
Add table
Reference in a new issue