Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.games.development.programming.algorithms > #15 > unrolled thread

Need help on how to properly calculate rank

Started byBill <Bill@hotmail.com>
First post2011-06-23 13:40 -0400
Last post2011-06-23 16:30 -0500
Articles 2 — 2 participants

Back to article view | Back to comp.games.development.programming.algorithms


Contents

  Need help on how to properly calculate rank Bill <Bill@hotmail.com> - 2011-06-23 13:40 -0400
    Re: Need help on how to properly calculate rank Konrad Gaertner <kgaertner@tx.rr.com> - 2011-06-23 16:30 -0500

#15 — Need help on how to properly calculate rank

FromBill <Bill@hotmail.com>
Date2011-06-23 13:40 -0400
SubjectNeed help on how to properly calculate rank
Message-ID<itvtq7$n22$1@speranza.aioe.org>
Hello,

I am working on a multi-player texas holdem poker game. Five people can 
play in the game at once. Players may enter and leave at any time. I 
would like to maintain an ordered list that shows how you rank against 
the other players in the game. The problem is I don't know how I should 
properly calculate the ranking of each player. I have the number of 
hands the player has played and won since they joined the game.

If I divide player wins by plays, I have a win ratio for a player. But I 
think a player that has 50 wins and 100 plays should rank higher than a 
player that has 1 win and 1 play even though they have a lower win 
ratio. So the amount of plays should be a contributing factor to the 
rank score. I then figured that the rank could be calculated by wins 
divided by plays times wins but I am unsure if that would be correct or 
if there is a better solution.

I would appreciate anyone's help in figuring this out, thank you.

[toc] | [next] | [standalone]


#16

FromKonrad Gaertner <kgaertner@tx.rr.com>
Date2011-06-23 16:30 -0500
Message-ID<4E03B081.7972B0AC@tx.rr.com>
In reply to#15
Bill wrote:
> 
> If I divide player wins by plays, I have a win ratio for a player. But I
> think a player that has 50 wins and 100 plays should rank higher than a
> player that has 1 win and 1 play even though they have a lower win
> ratio. So the amount of plays should be a contributing factor to the
> rank score. I then figured that the rank could be calculated by wins
> divided by plays times wins but I am unsure if that would be correct or
> if there is a better solution.

You could rank them by total profit.  If ante is 1 and there's no 
betting, then the profit would be wins*5 - plays.


-- 
Konrad Gaertner - - - - - - - - - - - - email: kgaertner@tx.rr.com
http://kgbooklog.livejournal.com/
"I don't mind hidden depths but I insist that there be a surface."
                          -- James Nicoll

[toc] | [prev] | [standalone]


Back to top | Article view | comp.games.development.programming.algorithms


csiph-web