]> git.sesse.net Git - stockfish/blobdiff - src/endgame.cpp
There is no need to special case KNNK ending
[stockfish] / src / endgame.cpp
index a8c1e1d01ffb4d4803fbc1a957bd25366a2b85a7..abbb0876c64bd35b77be6f919ca66b793d02c4cb 100644 (file)
@@ -348,11 +348,18 @@ Value EvaluationFunction<KBBKN>::apply(const Position& pos) {
   return (strongerSide == pos.side_to_move() ? result : -result);
 }
 
+
+/// K and two minors vs K and one or two minors or K and two knights against
+/// king alone are always draw.
 template<>
 Value EvaluationFunction<KmmKm>::apply(const Position&) {
   return Value(0);
 }
 
+template<>
+Value EvaluationFunction<KNNK>::apply(const Position&) {
+  return Value(0);
+}
 
 /// KBPKScalingFunction scales endgames where the stronger side has king,
 /// bishop and one or more pawns. It checks for draws with rook pawns and a