]> git.sesse.net Git - stockfish/blobdiff - src/endgame.cpp
Magic::index()
[stockfish] / src / endgame.cpp
index d38247805b50fe87ec6df57cf3cd34b7982e61af..b64b75cbca63e22a0f375611d9e5e4be920ea864 100644 (file)
@@ -110,14 +110,6 @@ Endgames::Endgames() {
 }
 
 
-template<EndgameType E, typename T>
-void Endgames::add(const string& code) {
-  StateInfo st;
-  map<T>()[Position().set(code, WHITE, &st).material_key()] = std::unique_ptr<EndgameBase<T>>(new Endgame<E>(WHITE));
-  map<T>()[Position().set(code, BLACK, &st).material_key()] = std::unique_ptr<EndgameBase<T>>(new Endgame<E>(BLACK));
-}
-
-
 /// Mate with KX vs K. This function is used to evaluate positions with
 /// king and plenty of material vs a lone king. It simply gives the
 /// attacking side a bonus for driving the defending king towards the edge
@@ -652,7 +644,7 @@ ScaleFactor Endgame<KBPKB>::operator()(const Position& pos) const {
 
       if (relative_rank(strongSide, pawnSq) <= RANK_5)
           return SCALE_FACTOR_DRAW;
-      
+
       Bitboard path = forward_bb(strongSide, pawnSq);
 
       if (path & pos.pieces(weakSide, KING))