#include <cassert>
-#include "bitbase.h"
#include "bitcount.h"
#include "endgame.h"
/// 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);
/// king alone are always draw.
template<>
Value EvaluationFunction<KmmKm>::apply(const Position&) const {
- return VALUE_ZERO;
+ return VALUE_DRAW;
}
template<>
Value EvaluationFunction<KNNK>::apply(const Position&) const {
- return VALUE_ZERO;
+ return VALUE_DRAW;
}
/// KBPKScalingFunction scales endgames where the stronger side has king,