We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59c6654 commit 8b8eb2bCopy full SHA for 8b8eb2b
src/evaluate.cpp
@@ -1092,7 +1092,11 @@ Value Eval::evaluate(const Position& pos) {
1092
// Scale and shift NNUE for compatibility with search and classical evaluation
1093
auto adjusted_NNUE = [&]()
1094
{
1095
- Value nnue = NNUE::evaluate(pos) + Time.tempoNNUE;
+ int param1 = 903, param2 = 28, param3 = 28;
1096
+
1097
+ int scale = param1 + param2 * pos.count<PAWN>() + param3 * pos.non_pawn_material() / 1024;
1098
1099
+ Value nnue = NNUE::evaluate(pos) * scale / 1024 + Time.tempoNNUE;
1100
1101
if (pos.is_chess960())
1102
nnue += fix_FRC(pos);
0 commit comments