Skip to content

Commit

Permalink
Only opponent camp, S(4x(x-1), x)
Browse files Browse the repository at this point in the history
Bench: 4940559
  • Loading branch information
snicolet committed Jul 10, 2018
1 parent 04c44bf commit f604de1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/evaluate.cpp
Expand Up @@ -576,9 +576,9 @@ namespace {
score += WeakUnopposedPawn * pe->weak_unopposed(Them);

// Entry points in the opponent camp
b = attackedBy2[Us] & ~attackedBy2[Them] & ~attackedBy[Them][PAWN];
int x = popcount(b & (pos.pieces(Them) | (~pos.pieces() & OpponentCamp)));
score += make_score(2 * x * (x - 1), 0);
b = OpponentCamp & attackedBy2[Us] & ~attackedBy2[Them] & ~attackedBy[Them][PAWN];
int x = popcount(b & ~pos.pieces(Us));
score += make_score(4 * x * (x - 1), x);

// Our safe or protected pawns
b = pos.pieces(Us, PAWN)
Expand Down

0 comments on commit f604de1

Please sign in to comment.