helppokersource - Support: sr #2632, Poker-eval incorrectly evaluates a...

Show feedback again

sr #2632: Poker-eval incorrectly evaluates a 7-card hand with a joker deck

Submitted by:  None
Submitted on:  Wed Oct 20 03:05:12 2010  
Category: poker-evalPriority: 5 - Normal
Severity: 5 - BlockerStatus: None
Privacy: PublicAssigned to: None
Originator Email: -unavailable-Open/Closed: Open
Operating System: Ubuntu 8.10 (Intrepid)Effort: 0.00

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Thu Oct 21 02:12:50 2010, comment #1:

I took a look at the source and it seems that the Joker is only evaluated as an ACE. Would it be possible to update the source to reflect this? Several games use the joker as a true wild, so it was pretty confusing when the evaluator started spitting errant evaluations. Thanks.

Wed Oct 20 03:05:12 2010, original submission:

I modified the seven_card_hands.c example to use a joker deck and print out all the possible hands. However, it displays the hands as follows:

NoPair : 24780420
OnePair : 64221960
TwoPair : 35553816
Trips : 7470676
Straight: 11236028
Flush : 6172088
FlHouse : 4189680
Quads : 307568
StFlush : 209716
Quints : 1128

The numbers for quads, straight flush, and full house are incorrect. They should really be:

StFlush: 210964
Quads: 307472
FlHouse: 4188528

I then modified the usedecks.c to evaluate the following hand:
Xx As Ks Qs Js Kc Kh

It reports this hand as a full house, but it's actually a Quad (4 Kings). I tested this against the trunk, and I didn't a pre-existing bug for this.



(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by None (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Error: not logged in



    No Changes Have Been Made to This Item
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup