[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pbmserv-dev] Solitaire game scoring



'Twas 10:28 AM +1000 on Friday 4/16/2004 when Cameron Browne wrote:
It turns out that the user's rating changes by 1 pt for every N pts their score differs from their current average.

Well, duh.


and integer rounding makes this a pretty chunky increment.

Simple method to reduce chunkiness: Multiply by 10:


                 ((N-1) * oldrating) + 10 * currentscore
   newrating = ----------------------------------------------
                             N

--
RB |\  Randall Bart
aa |/  admin@RandallBart.com  Home: 1-212-965-1786  Barticus@att.net
nr |\  Cell: 1-917-715-0831   I LOVE YOU  Work: 1-212-343-1234 x3016
dt ||\   Not My Fault: http://shoah.brainthru.com/people/bystand.htm
a   |/            Smart Greek Dude: http://aristarchus.brainthru.com
l   |\ DOT-HS-808-065          The Church Of The Unauthorized Truth:
l   |/ MS^7=6/28/107          http://yg.cotut.com mailto:s@cotut.com