mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-24 19:16:49 +08:00
Simplify pawns King Safety calculation
STC LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 130209 W: 23516 L: 23581 D: 83112 LTC LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 33541 W: 4563 L: 4460 D: 24518 Bench: 8644370 Resolves #604
This commit is contained in:
@@ -288,9 +288,6 @@ Score Entry::do_king_safety(const Position& pos, Square ksq) {
|
||||
if (pawns)
|
||||
while (!(DistanceRingBB[ksq][minKingPawnDistance++] & pawns)) {}
|
||||
|
||||
if (relative_rank(Us, ksq) > RANK_4)
|
||||
return make_score(0, -16 * minKingPawnDistance);
|
||||
|
||||
Value bonus = shelter_storm<Us>(pos, ksq);
|
||||
|
||||
// If we can castle use the bonus after the castling if it is bigger
|
||||
|
||||
Reference in New Issue
Block a user