X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fendgame.h;h=f2990e744d19a97ae19c2fa48f592f3afd360e0b;hp=dabf233e7058f2f367f429badf25bcd00f4fd40e;hb=1dc1cecf01352a39bc1b80c83f6e8e4e97d859e1;hpb=5dc23121215039938a9ef4e59ae934312774571c diff --git a/src/endgame.h b/src/endgame.h index dabf233e..f2990e74 100644 --- a/src/endgame.h +++ b/src/endgame.h @@ -7,12 +7,12 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + Stockfish is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program. If not, see . */ @@ -99,6 +99,20 @@ public: Value apply(const Position &pos); }; +// KBB vs KN: +class KBBKNEvaluationFunction : public EndgameEvaluationFunction { +public: + KBBKNEvaluationFunction(Color C); + Value apply(const Position &pos); +}; + +// K and two minors vs K and one or two minors: +class KmmKmEvaluationFunction : public EndgameEvaluationFunction { +public: + KmmKmEvaluationFunction(Color c); + Value apply(const Position &pos); +}; + /// Abstract base class for all evaluation scaling functions: @@ -205,6 +219,12 @@ extern KRKNEvaluationFunction EvaluateKRKN, EvaluateKNKR; // KQ vs KR: extern KQKREvaluationFunction EvaluateKQKR, EvaluateKRKQ; +// KBB vs KN: +extern KBBKNEvaluationFunction EvaluateKBBKN, EvaluateKNKBB; + +// K and two minors vs K and one or two minors: +extern KmmKmEvaluationFunction EvaluateKmmKm; + // KBP vs K: extern KBPKScalingFunction ScaleKBPK, ScaleKKBP;