]> git.sesse.net Git - stockfish/commitdiff
Mobile phalanxes
authorsnicolet <cassio@free.fr>
Fri, 20 Feb 2015 19:56:57 +0000 (19:56 +0000)
committerJoona Kiiski <joona.kiiski@gmail.com>
Fri, 20 Feb 2015 19:56:57 +0000 (19:56 +0000)
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

src/evaluate.cpp
src/pawns.cpp

index 7ff7dfc18f343f5f47a67f068a106fba545eba89..8c5ecc36847ac88e5be0b7be3b19650fb853aa65 100644 (file)
@@ -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 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
 
   // 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
index d66233caa3f876da9ef8ffb9fe718e6350c4f819..41c9e15d16247d6e27762add2b08f45658c24162 100644 (file)
@@ -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);
           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);
           }
 }
 
           }
 }