mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Retire implicit malus for stonewalls
STC: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 75864 W: 13466 L: 13437 D: 48961 LTC: LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 99050 W: 12472 L: 12451 D: 74127 bench: 6098474
This commit is contained in:
parent
ab26c61971
commit
0162fb83c2
1 changed files with 3 additions and 4 deletions
|
@ -37,9 +37,8 @@ namespace {
|
||||||
// Backward pawn penalty by opposed flag
|
// Backward pawn penalty by opposed flag
|
||||||
const Score Backward[2] = { S(56, 33), S(41, 19) };
|
const Score Backward[2] = { S(56, 33), S(41, 19) };
|
||||||
|
|
||||||
// Unsupported pawn penalty for pawns which are neither isolated or backward,
|
// Unsupported pawn penalty for pawns which are neither isolated or backward
|
||||||
// by number of pawns it supports [less than 2 / exactly 2].
|
const Score Unsupported = S(17, 8);
|
||||||
const Score Unsupported[2] = { S(17, 8), S(21, 12) };
|
|
||||||
|
|
||||||
// Connected pawn bonus by opposed, phalanx, twice supported and rank
|
// Connected pawn bonus by opposed, phalanx, twice supported and rank
|
||||||
Score Connected[2][2][2][RANK_NB];
|
Score Connected[2][2][2][RANK_NB];
|
||||||
|
@ -163,7 +162,7 @@ namespace {
|
||||||
score -= Backward[opposed];
|
score -= Backward[opposed];
|
||||||
|
|
||||||
else if (!supported)
|
else if (!supported)
|
||||||
score -= Unsupported[more_than_one(neighbours & pawnAttacksBB[s])];
|
score -= Unsupported;
|
||||||
|
|
||||||
if (connected)
|
if (connected)
|
||||||
score += Connected[opposed][!!phalanx][more_than_one(supported)][relative_rank(Us, s)];
|
score += Connected[opposed][!!phalanx][more_than_one(supported)][relative_rank(Us, s)];
|
||||||
|
|
Loading…
Add table
Reference in a new issue