X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fendgame.cpp;h=bb756f3b20cd558922c4fc6c416b055e962c3b6d;hp=abf27d52b66860eb39be3f6ce4d9137a2fe842ee;hb=00d9fe8af09891e82d66f88c48b513d6a7326f2a;hpb=d4876dc96395f5592bfbc25b2eca2360db0655e6 diff --git a/src/endgame.cpp b/src/endgame.cpp index abf27d52..bb756f3b 100644 --- a/src/endgame.cpp +++ b/src/endgame.cpp @@ -24,7 +24,6 @@ #include -#include "bitbase.h" #include "bitcount.h" #include "endgame.h" @@ -102,6 +101,7 @@ namespace { /// init_bitbases() is called during program initialization, and simply loads /// bitbases from disk into memory. At the moment, there is only the bitbase /// for KP vs K, but we may decide to add other bitbases later. +extern void generate_kpk_bitbase(uint8_t bitbase[]); void init_bitbases() { generate_kpk_bitbase(KPKBitbase); @@ -367,12 +367,12 @@ Value EvaluationFunction::apply(const Position& pos) const { /// king alone are always draw. template<> Value EvaluationFunction::apply(const Position&) const { - return VALUE_ZERO; + return VALUE_DRAW; } template<> Value EvaluationFunction::apply(const Position&) const { - return VALUE_ZERO; + return VALUE_DRAW; } /// KBPKScalingFunction scales endgames where the stronger side has king,