]> git.sesse.net Git - stockfish/blobdiff - src/pawns.cpp
Mobile phalanxes
[stockfish] / src / pawns.cpp
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);
-              Connected[opposed][phalanx][r] = make_score(bonus / 2, bonus >> opposed);
+              bonus >>= opposed;
+              Connected[opposed][phalanx][r] = make_score( 3 * bonus / 2, bonus);
           }
 }