From fb6a3e04ec04a500d4b7c64158e5a74c2196e7ca Mon Sep 17 00:00:00 2001 From: Daniel Monroe Date: Thu, 27 Mar 2025 19:16:45 -0400 Subject: [PATCH] Simply use non_pawn_material rather than summing tuned terms Passed simplification STC LLR: 2.93 (-2.94,2.94) <-1.75,0.25> Total: 136576 W: 35285 L: 35175 D: 66116 Ptnml(0-2): 410, 16179, 34997, 16295, 407 https://tests.stockfishchess.org/tests/view/67e5dc736682f97da2178da6 Passed rebased simplification LTC LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 85482 W: 21812 L: 21658 D: 42012 Ptnml(0-2): 34, 9260, 24022, 9368, 57 https://tests.stockfishchess.org/tests/view/67e852cb31d7cf8afdc44966 closes https://github.com/official-stockfish/Stockfish/pull/5965 Bench: 2006483 --- src/search.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 291b99bd1..1c3622884 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -102,9 +102,7 @@ int risk_tolerance(const Position& pos, Value v) { return 644800 * x / ((x * x + 3 * y * y) * y); }; - int m = (67 * pos.count() + 182 * pos.count() + 182 * pos.count() - + 337 * pos.count() + 553 * pos.count()) - / 64; + int m = pos.count() + pos.non_pawn_material() / 300; // a and b are the crude approximation of the wdl model. // The win rate is: 1/(1+exp((a-v)/b))