mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 16:53:09 +00:00
Reduce penalty for doubled pawns further away from each other
Passed both STC LLR: 2.96 (-2.94,2.94) [-1.50,4.50] Total: 38339 W: 6849 L: 6649 D: 24841 and LTC LLR: 2.95 (-2.94,2.94) [0.00,6.00] Total: 22693 W: 3455 L: 3256 D: 15982 bench: 7508468
This commit is contained in:
parent
ce6b7a1b85
commit
4597324572
1 changed files with 3 additions and 3 deletions
|
@ -89,10 +89,10 @@ namespace {
|
|||
const Square Right = (Us == WHITE ? DELTA_NE : DELTA_SW);
|
||||
const Square Left = (Us == WHITE ? DELTA_NW : DELTA_SE);
|
||||
|
||||
Bitboard b, p;
|
||||
Bitboard b, p, doubled;
|
||||
Square s;
|
||||
File f;
|
||||
bool passed, isolated, doubled, opposed, connected, backward, candidate, unsupported;
|
||||
bool passed, isolated, opposed, connected, backward, candidate, unsupported;
|
||||
Score value = SCORE_ZERO;
|
||||
const Square* pl = pos.list<PAWN>(Us);
|
||||
|
||||
|
@ -177,7 +177,7 @@ namespace {
|
|||
value -= UnsupportedPawnPenalty;
|
||||
|
||||
if (doubled)
|
||||
value -= Doubled[f];
|
||||
value -= Doubled[f] / rank_distance(s, lsb(doubled));
|
||||
|
||||
if (backward)
|
||||
value -= Backward[opposed][f];
|
||||
|
|
Loading…
Add table
Reference in a new issue