]> git.sesse.net Git - stockfish/blobdiff - src/endgame.cpp
Assorted formatting and comment tweaks in position.h
[stockfish] / src / endgame.cpp
index fd4c92f708e61ac14d4ffa1e1a6ab68ad00fad76..7c33b4e595f31d98114d539033c36b8f652c57b4 100644 (file)
@@ -167,7 +167,8 @@ Value Endgame<KXK>::operator()(const Position& pos) const {
   if (   pos.count<QUEEN>(strongSide)
       || pos.count<ROOK>(strongSide)
       ||(pos.count<BISHOP>(strongSide) && pos.count<KNIGHT>(strongSide))
-      || pos.bishop_pair(strongSide))
+      ||(pos.count<BISHOP>(strongSide) > 1 && opposite_colors(pos.list<BISHOP>(strongSide)[0],
+                                                              pos.list<BISHOP>(strongSide)[1])))
       result += VALUE_KNOWN_WIN;
 
   return strongSide == pos.side_to_move() ? result : -result;