]> git.sesse.net Git - stockfish/blobdiff - src/endgame.h
Optimize generate_piece_blocking_evasions()
[stockfish] / src / endgame.h
index dabf233e7058f2f367f429badf25bcd00f4fd40e..f2990e744d19a97ae19c2fa48f592f3afd360e0b 100644 (file)
@@ -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 <http://www.gnu.org/licenses/>.
 */
@@ -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;