mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00:00
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
This commit is contained in:
parent
667f350737
commit
2f46592736
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue