From 55905e562a0de4aeef9c5081a9eab80e6ed4c542 Mon Sep 17 00:00:00 2001 From: Daniel Monroe Date: Wed, 13 Nov 2024 12:56:29 -0800 Subject: [PATCH] Simplify movepick coefficients This commit sets movepick weights for all continuation histories to 1 and doubles the weight for the main history, inspired by a recent tune. Passed STC https://tests.stockfishchess.org/tests/view/6735151a86d5ee47d953eaa2 LLR: 2.92 (-2.94,2.94) <-1.75,0.25> Total: 29984 W: 7840 L: 7612 D: 14532 Ptnml(0-2): 85, 3511, 7571, 3741, 84 Passed LTC https://tests.stockfishchess.org/tests/view/673667a986d5ee47d953ec78 LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 26268 W: 6726 L: 6510 D: 13032 Ptnml(0-2): 16, 2797, 7288, 3021, 12 closes https://github.com/official-stockfish/Stockfish/pull/5680 Bench: 1130293 --- src/movepick.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/movepick.cpp b/src/movepick.cpp index 720f2e03..df722ece 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -158,11 +158,11 @@ void MovePicker::score() { Square to = m.to_sq(); // histories - m.value = (*mainHistory)[pos.side_to_move()][m.from_to()]; + m.value = 2 * (*mainHistory)[pos.side_to_move()][m.from_to()]; m.value += 2 * (*pawnHistory)[pawn_structure_index(pos)][pc][to]; - m.value += 2 * (*continuationHistory[0])[pc][to]; + m.value += (*continuationHistory[0])[pc][to]; m.value += (*continuationHistory[1])[pc][to]; - m.value += (*continuationHistory[2])[pc][to] / 3; + m.value += (*continuationHistory[2])[pc][to]; m.value += (*continuationHistory[3])[pc][to]; m.value += (*continuationHistory[5])[pc][to];