Skip to content

Error #1

@trenkvaz

Description

@trenkvaz

Hello !

Why is it an error ?

Exception in thread "main" java.lang.RuntimeException: should not reach here in 5 card poker : FULL_HOUSE : hole cards [KING of CLUBS, ACE of SPADES] : community cards [QUEEN of SPADES, KING of HEARTS, KING of SPADES, ACE of DIAMONDS, ACE of CLUBS] vs FULL_HOUSE : hole cards [FIVE of CLUBS, ACE of HEARTS] : community cards [QUEEN of SPADES, KING of HEARTS, KING of SPADES, ACE of DIAMONDS, ACE of CLUBS]
at com.cardgames.poker.shared.PokerHandComparator.compareFullHouseHands(PokerHandComparator.java:129)
at com.cardgames.poker.shared.PokerHandComparator.compare(PokerHandComparator.java:38)

That is legal holdem combination

Regards, Alexey

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