Skip to content

Commit

Permalink
Take 2
Browse files Browse the repository at this point in the history
bench: 3323601
  • Loading branch information
mstembera authored and mstembera committed Jul 15, 2019
1 parent 948930e commit f4c565c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pawns.cpp
Expand Up @@ -128,10 +128,10 @@ namespace {
// Score this pawn
if (support | phalanx)
{
int v = Connected[r] * (phalanx ? 3 : 2) / (opposed ? 2 : 1)
+ 17 * popcount(support);
int v = Connected[r] * (more_than_one(phalanx) ? 7 : phalanx ? 6 : 4)
/ (opposed ? 4 : 2) + 17 * popcount(support);

score += make_score(v + bool(phalanx) * 8, v * (r - 2) / 4);
score += make_score(v, v * (r - 2) / 4);
}

else if (!neighbours)
Expand Down

0 comments on commit f4c565c

Please sign in to comment.