]> git.sesse.net Git - stockfish/commitdiff
Simplify Queen Mobility
authorVoyagerOne <excelgeek@gmail.com>
Sun, 5 Feb 2017 23:39:29 +0000 (15:39 -0800)
committerJoona Kiiski <joona@zoox.com>
Sun, 5 Feb 2017 23:40:30 +0000 (15:40 -0800)
STC:
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 85997 W: 15550 L: 15540 D: 54907

LTC:
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 25333 W: 3370 L: 3256 D: 18707

Bench: 6459194

Closes #991

src/evaluate.cpp

index 2414d5a0932771196e6000c46769cf8734208f1e..9e0629ef66686f816cc81041f801ebc3feb52829 100644 (file)
@@ -292,11 +292,6 @@ namespace {
             ei.kingAdjacentZoneAttacksCount[Us] += popcount(b & ei.attackedBy[Them][KING]);
         }
 
-        if (Pt == QUEEN)
-            b &= ~(  ei.attackedBy[Them][KNIGHT]
-                   | ei.attackedBy[Them][BISHOP]
-                   | ei.attackedBy[Them][ROOK]);
-
         int mob = popcount(b & ei.mobilityArea[Us]);
 
         mobility[Us] += MobilityBonus[Pt][mob];