From 0162fb83c21b9ac4d5ed302d4bc5a12b7a0cfc43 Mon Sep 17 00:00:00 2001 From: Stefano Cardanobile Date: Fri, 30 Sep 2016 20:50:42 +0200 Subject: [PATCH] Retire implicit malus for stonewalls STC: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 75864 W: 13466 L: 13437 D: 48961 LTC: LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 99050 W: 12472 L: 12451 D: 74127 bench: 6098474 --- src/pawns.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/pawns.cpp b/src/pawns.cpp index 245ba0c6..80f5e494 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -37,9 +37,8 @@ namespace { // Backward pawn penalty by opposed flag const Score Backward[2] = { S(56, 33), S(41, 19) }; - // Unsupported pawn penalty for pawns which are neither isolated or backward, - // by number of pawns it supports [less than 2 / exactly 2]. - const Score Unsupported[2] = { S(17, 8), S(21, 12) }; + // Unsupported pawn penalty for pawns which are neither isolated or backward + const Score Unsupported = S(17, 8); // Connected pawn bonus by opposed, phalanx, twice supported and rank Score Connected[2][2][2][RANK_NB]; @@ -163,7 +162,7 @@ namespace { score -= Backward[opposed]; else if (!supported) - score -= Unsupported[more_than_one(neighbours & pawnAttacksBB[s])]; + score -= Unsupported; if (connected) score += Connected[opposed][!!phalanx][more_than_one(supported)][relative_rank(Us, s)]; -- 2.39.2