Skip to content
Permalink
Browse files

popcount queen pinners.

  • Loading branch information...
protonspring committed May 15, 2019
1 parent 3a572ff commit e7c66b6994ea4d4239f7829e923dfc669480d124
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/evaluate.cpp
@@ -373,8 +373,7 @@ namespace {
{
// Penalty if any relative pin or discovered attack against the queen
Bitboard queenPinners;
if (pos.slider_blockers(pos.pieces(Them, ROOK, BISHOP), s, queenPinners))
score -= WeakQueen;
score -= WeakQueen * popcount(pos.slider_blockers(pos.pieces(Them, ROOK, BISHOP), s, queenPinners));
}
}
if (T)

0 comments on commit e7c66b6

Please sign in to comment.
You can’t perform that action at this time.