Skip to content

Commit

Permalink
tveack.
Browse files Browse the repository at this point in the history
bench 3185686
  • Loading branch information
Vizvezdenec committed Jun 12, 2019
1 parent 4ee49eb commit 7f92280
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/evaluate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -588,10 +588,13 @@ namespace {
score += SliderOnQueen * popcount(b & safe & attackedBy2[Us]);
}

b = 0;
if (DarkSquares & pos.pieces(Us, BISHOP))
score -= make_score(5, 2) * popcount(SpaceMask & DarkSquares & stronglyProtected);
b |= SpaceMask & DarkSquares & stronglyProtected;

if (~DarkSquares & pos.pieces(Us, BISHOP))
score -= make_score(5, 2) * popcount(SpaceMask & ~DarkSquares & stronglyProtected);
b |= SpaceMask & ~DarkSquares & stronglyProtected;
score -= make_score(5, 2) * popcount(b);

if (T)
Trace::add(THREAT, Us, score);
Expand Down

0 comments on commit 7f92280

Please sign in to comment.