]> git.sesse.net Git - remoteglot/blobdiff - book/count.h
Store sum and number of Elo values instead of averages, for easier merging.
[remoteglot] / book / count.h
index 1d8043f9e0fb67b4391c1441532190eac7cd8870..3024b8981f748a4953bbd9afe03716646228dd61 100644 (file)
@@ -4,6 +4,7 @@ struct Count {
        int draw = 0;
        int black = 0;
        int opening_num = -1;
-       float avg_white_elo = 0.0;
-       float avg_black_elo = 0.0;
+       unsigned long long sum_white_elo = 0;
+       unsigned long long sum_black_elo = 0;
+       int num_elo = 0;
 };