- // Adjust trend and optimism based on root move's previousScore
- int tr = sigmoid(prev, 6, 13, 96, 110, 1);
- trend = (us == WHITE ? make_score(tr, tr / 2)
- : -make_score(tr, tr / 2));
-
- int opt = sigmoid(prev, 7, 21, 94, 14786, 221);
+ // Adjust optimism based on root move's previousScore
+ int opt = 118 * prev / (std::abs(prev) + 169);