Store sum and number of Elo values instead of averages, for easier merging.
[remoteglot] / book / count.h
index 1d8043f..3024b89 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;
 };