mirror of
https://github.com/sockspls/badfish
synced 2025-07-11 11:39:15 +00:00
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
This commit is contained in:
commit
43f67eab5f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue