X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fendgame.cpp;h=abbb0876c64bd35b77be6f919ca66b793d02c4cb;hp=a8c1e1d01ffb4d4803fbc1a957bd25366a2b85a7;hb=aa925a0e2905042a978860a75798398cb79b2600;hpb=23ceb6695073cef741253ab175fabfde48415463 diff --git a/src/endgame.cpp b/src/endgame.cpp index a8c1e1d0..abbb0876 100644 --- a/src/endgame.cpp +++ b/src/endgame.cpp @@ -348,11 +348,18 @@ Value EvaluationFunction::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::apply(const Position&) { return Value(0); } +template<> +Value EvaluationFunction::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