]> git.sesse.net Git - stockfish/blobdiff - src/evaluate.cpp
Exclude queen from Rook Contact Check computation
[stockfish] / src / evaluate.cpp
index b50792da85a05ae5ad85f3557543cb01bbfc69d6..563e707ffe48df1c01d0e65dd5b4cbb7fb03e2f9 100644 (file)
@@ -438,7 +438,7 @@ namespace {
         {
             // ...and then remove squares not supported by another enemy piece
             b &= (  ei.attackedBy[Them][PAWN]   | ei.attackedBy[Them][KNIGHT]
         {
             // ...and then remove squares not supported by another enemy piece
             b &= (  ei.attackedBy[Them][PAWN]   | ei.attackedBy[Them][KNIGHT]
-                  | ei.attackedBy[Them][BISHOP] | ei.attackedBy[Them][QUEEN]);
+                  | ei.attackedBy[Them][BISHOP]);
 
             if (b)
                 attackUnits += RookContactCheck * popcount<Max15>(b);
 
             if (b)
                 attackUnits += RookContactCheck * popcount<Max15>(b);