Skip to content

Commit

Permalink
Increase bonus with rank: bonus=S(4r, 2r)
Browse files Browse the repository at this point in the history
bench: 5338954
  • Loading branch information
snicolet committed Nov 12, 2017
1 parent 719e39f commit 2de869b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/pawns.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ namespace {
const Score Doubled = S(18, 38);

// Pawn chain bonus
const Score Chain = S(3, 2);
const Score Chain = S(4, 2);

// Lever bonus by rank
const Score Lever[RANK_NB] = {
Expand Down Expand Up @@ -193,9 +193,7 @@ namespace {
if (lever)
score += Lever[relative_rank(Us, s)];

if ( supported
&& (supporting & (FileDBB | FileEBB))
&& more_than_one(shift<Up>(supported) | shift<Down>(supporting)))
if (supported && (supporting & (FileDBB | FileEBB)))
score += Chain * int(relative_rank(Us, s));
}

Expand Down

0 comments on commit 2de869b

Please sign in to comment.