mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 16:46:30 +08: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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user