[Kde-games-devel] Re: KPoker again: Rule question

Andreas Beckermann b_mann at gmx.de
Sat Aug 21 23:10:20 CEST 2004


On Saturday 21 August 2004 22:31, 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):
[...]
>    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.

Well, I don't have my most current time around atm, but all code that I do 
have here, uses the order that you have given. So I assume the code in cvs is 
wrong.

> Am I wrong?

No

>  -Inge

CU
Andi


More information about the kde-games-devel mailing list