]> git.sesse.net Git - stockfish/blobdiff - src/endgame.cpp
Fix KXK endgame
[stockfish] / src / endgame.cpp
index 23c546d796dccc914724aa80b938781db2c30fba..4ee515ade71cab5c856f3f6c547d1fd959a8820f 100644 (file)
@@ -166,6 +166,7 @@ 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))
       result += VALUE_KNOWN_WIN;