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

Re: [pbmserv-dev] Solitaire game scoring




How about a compromise? average of the last N games?


if totalplayed is < N, use your algorithm


                   (totalplayed * oldrating) + currentscore
    newrating = ----------------------------------------------
                              totalplayed + 1


Once totalplayed >= N, then it becomes a rolling average of the last N games played

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

Yep that's a good suggestion. An obvious choice for N is 20, the magic number at which players become established.


I presume nobody will mind if I clobber the old score table :)

Cameron