Adjust endgame evaluation for KSSK
authorFabian Fichter <ianfab@users.noreply.github.com>
Sat, 26 Sep 2020 09:43:54 +0000 (11:43 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Sat, 26 Sep 2020 09:43:54 +0000 (11:43 +0200)
makruk
LLR: 2.97 (-2.94,2.94) [-10.00,5.00]
Total: 12891 W: 944 L: 932 D: 11015
http://www.variantfishtest.org:6543/tests/view/5f5ded636e23db221d9e9184

src/material.cpp

index be30d86..097a674 100644 (file)
@@ -73,7 +73,7 @@ namespace {
 
   bool is_KXK(const Position& pos, Color us) {
     return  !more_than_one(pos.pieces(~us))
-          && pos.non_pawn_material(us) >= RookValueMg;
+          && pos.non_pawn_material(us) >= std::min(RookValueMg, 2 * SilverValueMg);
   }
 
   bool is_KBPsK(const Position& pos, Color us) {