mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 01:56:58 +08:00
Remove supporting pawns
Tested in no-regression mode Passed both STC LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 44957 W: 7984 L: 7903 D: 29070 and LTC LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 12396 W: 1916 L: 1783 D: 8697 Bench: 7907885
This commit is contained in:
committed by
Marco Costalba
parent
9073866491
commit
619d66b7ab
@@ -583,7 +583,7 @@ namespace {
|
|||||||
|
|
||||||
const Color Them = (Us == WHITE ? BLACK : WHITE);
|
const Color Them = (Us == WHITE ? BLACK : WHITE);
|
||||||
|
|
||||||
Bitboard b, squaresToQueen, defendedSquares, unsafeSquares, supportingPawns;
|
Bitboard b, squaresToQueen, defendedSquares, unsafeSquares;
|
||||||
Score score = SCORE_ZERO;
|
Score score = SCORE_ZERO;
|
||||||
|
|
||||||
b = ei.pi->passed_pawns(Us);
|
b = ei.pi->passed_pawns(Us);
|
||||||
@@ -651,15 +651,6 @@ namespace {
|
|||||||
}
|
}
|
||||||
} // rr != 0
|
} // rr != 0
|
||||||
|
|
||||||
// Increase the bonus if the passed pawn is supported by a friendly pawn
|
|
||||||
// on the same rank and a bit smaller if it's on the previous rank.
|
|
||||||
supportingPawns = pos.pieces(Us, PAWN) & adjacent_files_bb(file_of(s));
|
|
||||||
if (supportingPawns & rank_bb(s))
|
|
||||||
ebonus += Value(r * 20);
|
|
||||||
|
|
||||||
else if (supportingPawns & rank_bb(s - pawn_push(Us)))
|
|
||||||
ebonus += Value(r * 12);
|
|
||||||
|
|
||||||
// Rook pawns are a special case: They are sometimes worse, and
|
// Rook pawns are a special case: They are sometimes worse, and
|
||||||
// sometimes better than other passed pawns. It is difficult to find
|
// sometimes better than other passed pawns. It is difficult to find
|
||||||
// good rules for determining whether they are good or bad. For now,
|
// good rules for determining whether they are good or bad. For now,
|
||||||
|
|||||||
Reference in New Issue
Block a user