- // Adjust trend and optimism based on root move's previousScore
- int tr = sigmoid(prev, 4, 11, 92, 119, 1);
- trend = (us == WHITE ? make_score(tr, tr / 2)
- : -make_score(tr, tr / 2));
-
- int opt = sigmoid(prev, 9, 18, 115, 12250, 187);
+ // Adjust optimism based on root move's previousScore
+ int opt = 118 * prev / (std::abs(prev) + 169);