Freecell: in top 10, number missing in tie

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?

  • jimjim REGISTERED, ADMINISTRATORS
    edited February 2019 38.84.72.34

    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.

  • daviddavid REGISTERED, ADMINISTRATORS

    Yeah, in the case of a tie the data we get back from the server will just repeat the rank, like:

    rank name   score  time moves
    1    david  52     20s  10
    2    jim    52     35s  15
    2    deusex 52     35s  15
    4    zuden  52     40s  10
    

    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).

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Attach file
Attach image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file
Home Bug ReportsComment As ...