Skip to content

Commit

Permalink
Update evaluate.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
gahtan-syarif authored Mar 22, 2024
1 parent d99f895 commit c3ecfe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/evaluate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Value Eval::evaluate(const Eval::NNUE::Networks& networks, const Position& pos,
int shufflingDiv) {
// Blend optimism and eval with nnue complexity and material imbalance
optimism += optimism * (nnueComplexity + std::abs(simpleEval - nnue)) / optDiv;
nnue -= nnue * (nnueComplexity + std::abs(simpleEval - nnue)) / nnueDiv;
nnue -= nnue * (nnueComplexity * 3/2) / nnueDiv;

int npm = pos.non_pawn_material() / 64;
v = (nnue * (npm + pawnCountConstant + pawnCountMul * pos.count<PAWN>())
Expand Down

0 comments on commit c3ecfe7

Please sign in to comment.