- // Blend nnue complexity with (semi)classical complexity
- nnueComplexity = ( 406 * nnueComplexity
- + (424 + optimism) * abs(psq - nnue)
- ) / 1024;
-
- // Return hybrid NNUE complexity to caller
- if (complexity)
- *complexity = nnueComplexity;
-
- optimism = optimism * (272 + nnueComplexity) / 256;
- v = (nnue * scale + optimism * (scale - 748)) / 1024;
+ // Blend optimism with nnue complexity and (semi)classical complexity
+ optimism += optimism * (nnueComplexity + abs(psq - nnue)) / 512;
+ v = (nnue * (945 + npm) + optimism * (150 + npm)) / 1024;