Skip to content
Permalink
Browse files

discovered check in SEE. Bench: 3176577

  • Loading branch information...
miguel-l committed Jan 4, 2019
1 parent bb843a0 commit 7f769744dfb07207d24ce0080c9b4f138700d911
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/position.cpp
@@ -1070,6 +1070,9 @@ bool Position::see_ge(Move m, Value threshold) const {
// removed, but possibly an X-ray attacker added behind it.
Bitboard occupied = pieces() ^ from ^ to;
Bitboard attackers = attackers_to(to, occupied) & occupied;
bool discovery = attackers & pieces(stm) & st->blockersForKing[us];
if (discovery)
return false;

while (true)
{

0 comments on commit 7f76974

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