Skip to content
Permalink
Browse files

Use was higher divisor to avoid overflow. Bench: 4841671

  • Loading branch information
Stefan Geschwentner
Stefan Geschwentner committed Nov 8, 2019
1 parent 1fb258c commit 92a9b6ee4679ea21a37a78cccfe10ccad9be4863
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/evaluate.cpp
@@ -497,7 +497,7 @@ namespace {
sum += QKD[i][j] * evalFactor[j];
quadratic_kd += sum * evalFactor[i];
}
kingDanger += quadratic_kd / 8;
kingDanger += quadratic_kd / 8192;

// Transform the kingDanger units into a Score, and subtract it from the evaluation
if (kingDanger > 100)

0 comments on commit 92a9b6e

Please sign in to comment.
You can’t perform that action at this time.