diff --git a/src/endgame.cpp b/src/endgame.cpp index cc98de90..96f85334 100644 --- a/src/endgame.cpp +++ b/src/endgame.cpp @@ -89,10 +89,7 @@ namespace { Endgames::Endgames() { - add("KK"); add("KPK"); - add("KBK"); - add("KNK"); add("KNNK"); add("KBNK"); add("KRKP"); @@ -411,9 +408,6 @@ Value Endgame::operator()(const Position& pos) const { /// Some cases of trivial draws -template<> Value Endgame::operator()(const Position&) const { return VALUE_DRAW; } -template<> Value Endgame::operator()(const Position&) const { return VALUE_DRAW; } -template<> Value Endgame::operator()(const Position&) const { return VALUE_DRAW; } template<> Value Endgame::operator()(const Position&) const { return VALUE_DRAW; } template<> Value Endgame::operator()(const Position&) const { return VALUE_DRAW; } diff --git a/src/endgame.h b/src/endgame.h index 5529eae1..49f39990 100644 --- a/src/endgame.h +++ b/src/endgame.h @@ -33,9 +33,6 @@ enum EndgameType { // Evaluation functions - KK, // K vs K - KBK, // KB vs K - KNK, // KN vs K KNNK, // KNN vs K KXK, // Generic "mate lone king" eval KBNK, // KBN vs K diff --git a/src/material.cpp b/src/material.cpp index abad2abb..0f1e19b9 100644 --- a/src/material.cpp +++ b/src/material.cpp @@ -240,7 +240,8 @@ Entry* probe(const Position& pos, Table& entries, Endgames& endgames) { } } - // No pawns makes it difficult to win, even with a material advantage + // No pawns makes it difficult to win, even with a material advantage. This + // catches some trivial draws like KK, KBK and KNK if (!pos.count(WHITE) && npm_w - npm_b <= BishopValueMg) { e->factor[WHITE] = (uint8_t)