We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb18caa commit 5688b18Copy full SHA for 5688b18
src/evaluate.cpp
@@ -83,10 +83,8 @@ Value Eval::evaluate(const Eval::NNUE::Networks& networks,
83
optimism += optimism * nnueComplexity / 470;
84
nnue -= nnue * nnueComplexity / 20000;
85
86
- int material = 300 * pos.count<PAWN>() + 350 * pos.count<KNIGHT>() + 400 * pos.count<BISHOP>()
87
- + 640 * pos.count<ROOK>() + 1200 * pos.count<QUEEN>();
88
-
89
- v = (nnue * (34300 + material) + optimism * (4400 + material)) / 36672;
+ int material = 600 * pos.count<PAWN>() + pos.non_pawn_material();
+ v = (nnue * (68600 + material) + optimism * (8800 + material)) / 73344;
90
91
// Damp down the evaluation linearly when shuffling
92
v -= v * pos.rule50_count() / 212;
0 commit comments