diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 7ff7dfc1..8c5ecc36 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -163,7 +163,7 @@ namespace { const Score Unstoppable = S( 0, 20); const Score Hanging = S(31, 26); const Score PawnAttackThreat = S(20, 20); - const Score PawnSafePush = S( 5 , 5); + const Score PawnSafePush = S( 5, 5); // Penalty for a bishop on a1/h1 (a8/h8 for black) which is trapped by // a friendly pawn on b2/g2 (b7/g7 for black). This can obviously only diff --git a/src/pawns.cpp b/src/pawns.cpp index d66233ca..41c9e15d 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -227,7 +227,8 @@ void init() for (Rank r = RANK_2; r < RANK_8; ++r) { int bonus = Seed[r] + (phalanx ? (Seed[r + 1] - Seed[r]) / 2 : 0); - Connected[opposed][phalanx][r] = make_score(bonus / 2, bonus >> opposed); + bonus >>= opposed; + Connected[opposed][phalanx][r] = make_score( 3 * bonus / 2, bonus); } }