From: snicolet Date: Fri, 20 Feb 2015 19:56:57 +0000 (+0000) Subject: Mobile phalanxes X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=2f465927363e3e753dfb65d67f9b126afc34f4fa;hp=667f35073773653ef8d05260536516fffb2d3faa Mobile phalanxes Try to create mobile phalanxes STC: LLR: 2.97 (-2.94,2.94) [-1.50,4.50] Total: 52393 W: 10912 L: 10656 D: 30825 LTC: LLR: 2.96 (-2.94,2.94) [0.00,6.00] Total: 30398 W: 5315 L: 5063 D: 20020 Bench: 8253813 Resolves #261 --- 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); } }