From: Fabian Fichter Date: Thu, 10 Sep 2020 19:49:11 +0000 (+0200) Subject: Soft limit on king danger X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=6100a057ddb4ea6dcb0ecc79c8b2bc50ecfafb4a;p=fairystockfish.git Soft limit on king danger chess STC LLR: 2.99 (-2.94,2.94) [-10.00,5.00] Total: 3531 W: 759 L: 732 D: 2040 http://www.variantfishtest.org:6543/tests/view/5f51e87b6e23db221d9e907f crazyhouse STC LLR: 2.95 (-2.94,2.94) [-10.00,5.00] Total: 1630 W: 810 L: 756 D: 64 http://www.variantfishtest.org:6543/tests/view/5f51e8e06e23db221d9e9084 crazyhouse LTC LLR: 2.95 (-2.94,2.94) [-10.00,5.00] Total: 2750 W: 1346 L: 1300 D: 104 http://www.variantfishtest.org:6543/tests/view/5f57249f6e23db221d9e9102 3check STC LLR: 2.99 (-2.94,2.94) [-10.00,5.00] Total: 2896 W: 1369 L: 1325 D: 202 http://www.variantfishtest.org:6543/tests/view/5f51e8c36e23db221d9e9082 3check LTC LLR: 2.98 (-2.94,2.94) [-10.00,5.00] Total: 6016 W: 2783 L: 2762 D: 471 http://www.variantfishtest.org:6543/tests/view/5f5724ab6e23db221d9e9104 bench: 4779259 --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 0f1f0c5..8f2a3ee 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -609,7 +609,7 @@ namespace { // Transform the kingDanger units into a Score, and subtract it from the evaluation if (kingDanger > 100) - score -= make_score(std::min(kingDanger * kingDanger / 4096, 3000), kingDanger / 16); + score -= make_score(std::min(kingDanger, 3500) * kingDanger / 4096, kingDanger / 16); // Penalty when our king is on a pawnless flank if (!(pos.pieces(PAWN) & kingFlank))