JD-pyprocgame
JD-pyprocgame copied to clipboard
Incorrect audit values
For the "Balls Played" audit, the last ball is counted twice, once in highscore_entry_finished() and again later in end_ball() highscore_entry_finished() does not need to deal with the end of ball audits.
For the "Avg Score" audit, the value is incorrect because the number of games must be incremented after the new score is incorporated into the average. The function calc_number_average() knows the average must be computed with count + 1.
For the "Games Played" audit, we always increment by one, but we need to increment by the number of players. In fact, for each player, we should incorporate the score in the average and then increment by 1.