From: Fabian Fichter Date: Sat, 26 Sep 2020 09:43:54 +0000 (+0200) Subject: Adjust endgame evaluation for KSSK X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=85e5ea4ea60a918341a112e8e30eaead0d1024b6;p=fairystockfish.git Adjust endgame evaluation for KSSK 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 --- diff --git a/src/material.cpp b/src/material.cpp index be30d86..097a674 100644 --- a/src/material.cpp +++ b/src/material.cpp @@ -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) {