- // Adjust trend and optimism based on root move's previousScore
- int tr = sigmoid(prev, 3, 10, 89, 116, 1);
- trend = (us == WHITE ? make_score(tr, tr / 2)
- : -make_score(tr, tr / 2));
-
- int opt = sigmoid(prev, 7, 20, 169, 19350, 164);
+ // Adjust optimism based on root move's previousScore
+ int opt = 118 * prev / (std::abs(prev) + 169);