Freecell: in top 10, number missing in tie
zudensternen
REGISTERED
Not really a bug, a curiosity: Sometimes two players will show up in the top 10 with times identical to the second, and show rankings of (say) 5 and 6. On other occasions with identical times, the second one's ranking is blank. I wonder if that means they had identical times to within the resolution you compare (millisecond?). Whereas when both times show up, the times were distinct but not visibly different at 1-second resolution?
Comments
Could it be that no number is shown when the two tie in time and moves, whereas they’re separate numbered entries when time ties but moves is different?
A blank rank in the high score table means the player has the exact same rank as the previous player and the order of the players is arbitrary. If it looks like the players should be equal but they have separate ranks it likely means the player’s times actually differ by a smaller value than the displayed time resolution.
Yeah, in the case of a tie the data we get back from the server will just repeat the rank, like:
In that case we just don't display the duplicate rank.
Our elapsed times are measured in milliseconds, but we truncate them to seconds when we store the game (milliseconds seemed excessive, though it would probably prevent most ties).
Moves are counted in the ranking (sorting by moves or elapsed time merely reverses the last 2 sort criteria in our db query).