Merge commit '5688b188cc8560e107815c83a7084220fddebdb9' into cluster

This commit is contained in:
Steinar H. Gunderson
2025-12-24 16:26:53 +01:00
4 changed files with 8 additions and 10 deletions
+2 -2
View File
@@ -156,8 +156,8 @@ dotprod = no
arm_version = 0
STRIP = strip
ifneq ($(shell which clang-format-17 2> /dev/null),)
CLANG-FORMAT = clang-format-17
ifneq ($(shell which clang-format-18 2> /dev/null),)
CLANG-FORMAT = clang-format-18
else
CLANG-FORMAT = clang-format
endif
+2 -4
View File
@@ -83,10 +83,8 @@ Value Eval::evaluate(const Eval::NNUE::Networks& networks,
optimism += optimism * nnueComplexity / 470;
nnue -= nnue * nnueComplexity / 20000;
int material = 300 * pos.count<PAWN>() + 350 * pos.count<KNIGHT>() + 400 * pos.count<BISHOP>()
+ 640 * pos.count<ROOK>() + 1200 * pos.count<QUEEN>();
v = (nnue * (34300 + material) + optimism * (4400 + material)) / 36672;
int material = 600 * pos.count<PAWN>() + pos.non_pawn_material();
v = (nnue * (68600 + material) + optimism * (8800 + material)) / 73344;
// Damp down the evaluation linearly when shuffling
v -= v * pos.rule50_count() / 212;