[Kde-games-devel] KPoker again: Rule question
Michael Burger
linuxman2k1 at gawab.com
Sat Aug 21 18:45:21 CEST 2004
In order from worst to best the hands are:
High Card
2 Pair
3 of a kind
Straight
Flush
Full House
4 of a kind
Straight Flush
Royal Flush
Mike
On Saturday 21 August 2004 8:31 pm, Inge Wallin wrote:
> The following is a part of the code in KPoker (from
> Player::sortedResult()). It tries to put a score on the hand of the
> player (lower score is better):
>
> switch (result) {
> case 1 :
> newResult += 400; // one pair
> break;
> case 2 :
> newResult += 350; // two pairs
> break;
> case 3 :
> newResult += 300; // 3 of a kind
> break;
> case 4 :
> newResult += 250; // full house
> break;
> case 6 :
> newResult += 200; // 4 of a kind
> break;
> case 7 :
> newResult = 150; // straight
> break;
> case 8 :
> newResult += 100; // flush
> break;
> case 9 :
> newResult += 50; // straight flush
> break;
>
>
> Is this really correct? I thought that 4 of a kind was better than both a
> straight or a flush and not the other way around which is indicated by the
> code above.
>
> My belief was that the order was:
> Straight flush, 4 of a kind, full house, flush, straight, 3 of a kind, two
> pairs, pair, best card.
>
> Am I wrong?
>
> -Inge
>
>
>
> Inge Wallin | Thus spake the master programmer:
> |
>
> | "After three days without programming,
> | |
>
> inge at lysator.liu.se | life becomes meaningless."
> |
>
> | Geoffrey James: The Tao of Programming.
> | |
>
> _______________________________________________
> kde-games-devel mailing list
> kde-games-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kde-games-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-games-devel/attachments/20040821/b0d87061/attachment.pgp
More information about the kde-games-devel
mailing list