My initial thought would be just keeping a score field in your database and doing an order by. Like MrNick said this would work well for reasonably sized data sets. The part that gets tricky is when a higher rung moves down x% of the total rungs. This would involve changing the score to a number between the scores of the correct rungs. Important details I would like to have:
  • Number of players
  • How a player beats another player
  • What information you're keeping track of in terms of rating and score

    An array might be a good way of holding your items. If you tied the array to keep it flushed to disk that might another way of handling it.


    In reply to Re: Implementation of a Ladder System by Banky
    in thread Implementation of a Ladder System by Anonymous Monk

    Title:
    Use:  <p> text here (a paragraph) </p>
    and:  <code> code here </code>
    to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.