- // Adjust trend and optimism based on root move's previousScore
- int tr = sigmoid(prev, 0, 0, 147, 113, 1);
- trend = (us == WHITE ? make_score(tr, tr / 2)
- : -make_score(tr, tr / 2));
-
- int opt = sigmoid(prev, 0, 25, 147, 14464, 256);
+ // Adjust optimism based on root move's previousScore
+ int opt = 118 * prev / (std::abs(prev) + 169);