Skip to content

get_poker_hand evaluates all 5-card combinations, but doesn't return all the winning cards #14

@grahambrown1

Description

@grahambrown1

It would be nice if it could return the 5 winning cards after evaluating each 5-card combination from the list of eg 7 cards passed.
Would it work to return the tuple of PokerHand followed by all 5 cards in the significant order to maintain the ability to sort? We'd need to make Card sortable, so High vs low Ace may catch us out here unless we supported a specific Ace Card instance being assigned a value of 1 or 14?
I don't mind putting a bit of work into it if you let me know if and how you'd like it implemented.
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions