]> git.sesse.net Git - stockfish/blobdiff - src/material.cpp
Remove unneeded condition. (#2057)
[stockfish] / src / material.cpp
index 294744f4ed7de6da34ccdea53acca82d813d13f5..773f332f20fddfdcebfacf441af9b2f18b19bd82 100644 (file)
@@ -70,14 +70,12 @@ namespace {
 
   bool is_KBPsK(const Position& pos, Color us) {
     return   pos.non_pawn_material(us) == BishopValueMg
-          && pos.count<BISHOP>(us) == 1
           && pos.count<PAWN  >(us) >= 1;
   }
 
   bool is_KQKRPs(const Position& pos, Color us) {
     return  !pos.count<PAWN>(us)
           && pos.non_pawn_material(us) == QueenValueMg
-          && pos.count<QUEEN>(us) == 1
           && pos.count<ROOK>(~us) == 1
           && pos.count<PAWN>(~us) >= 1;
   }