X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fendgame.cpp;h=7c4efa3cb425dfe4717c12e7ff1b26c039f730f6;hb=4a7b8180ecaef7d164fa53a1d545372df1173596;hp=5958e633d90e271e9fef852014defd7d6000164b;hpb=44c320a572188b5875291103edb344c584b91d19;p=stockfish diff --git a/src/endgame.cpp b/src/endgame.cpp index 5958e633..7c4efa3c 100644 --- a/src/endgame.cpp +++ b/src/endgame.cpp @@ -82,6 +82,33 @@ namespace { } // namespace +namespace Endgames { + + std::pair, Map> maps; + + void init() { + + add("KPK"); + add("KNNK"); + add("KBNK"); + add("KRKP"); + add("KRKB"); + add("KRKN"); + add("KQKP"); + add("KQKR"); + add("KNNKP"); + + add("KNPK"); + add("KNPKB"); + add("KRPKR"); + add("KRPKB"); + add("KBPKB"); + add("KBPKN"); + add("KBPPKB"); + add("KRPPKRP"); + } +} + /// 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