mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 07:27:46 +00:00
Remove trend
Simplify trend away. passed Non-regression STC: https://tests.stockfishchess.org/tests/view/63642a63a90afcecbd1cb887 LLR: 2.95 (-2.94,2.94) <-1.75,0.25> Total: 130000 W: 34683 L: 34567 D: 60750 Ptnml(0-2): 455, 14424, 35135, 14522, 464 passed Non-regression LTC: https://tests.stockfishchess.org/tests/view/636566fda90afcecbd1cded9 LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 81592 W: 21938 L: 21787 D: 37867 Ptnml(0-2): 42, 8035, 24490, 8188, 41 closes https://github.com/official-stockfish/Stockfish/pull/4222 Bench: 4239512
This commit is contained in:
committed by
Joost VandeVondele
parent
e048d11825
commit
a413900791
+1
-6
@@ -309,7 +309,6 @@ void Thread::search() {
|
||||
|
||||
complexityAverage.set(155, 1);
|
||||
|
||||
trend = SCORE_ZERO;
|
||||
optimism[us] = optimism[~us] = VALUE_ZERO;
|
||||
|
||||
int searchAgainCounter = 0;
|
||||
@@ -356,11 +355,7 @@ void Thread::search() {
|
||||
alpha = std::max(prev - delta,-VALUE_INFINITE);
|
||||
beta = std::min(prev + delta, VALUE_INFINITE);
|
||||
|
||||
// Adjust trend and optimism based on root move's previousScore
|
||||
int tr = 116 * prev / (std::abs(prev) + 89);
|
||||
trend = (us == WHITE ? make_score(tr, tr / 2)
|
||||
: -make_score(tr, tr / 2));
|
||||
|
||||
// Adjust optimism based on root move's previousScore
|
||||
int opt = 118 * prev / (std::abs(prev) + 169);
|
||||
optimism[ us] = Value(opt);
|
||||
optimism[~us] = -optimism[us];
|
||||
|
||||
Reference in New Issue
Block a user