Skip to content

hand_eval #1

Description

@BenjaminHorn

Maybe I am missing something, but it seems to be a bug

hole_cards_1 = [Card.str2card("2♦"), Card.str2card("4♣")]
hole_cards_2 = [Card.str2card("5♠"), Card.str2card("T♣")]

board = [
    Card.str2card("3♦"),
    Card.str2card("6♦"),
    Card.str2card("T♦"),
    Card.str2card("J♦"),
    Card.str2card("A♦"),
]

player_1_hand = HandEvaluator.eval_hand(hole_cards_1, board)
player_2_hand = HandEvaluator.eval_hand(hole_cards_2, board)

print(player_1_hand) // 1105986
print(player_2_hand) // 1106085

The board plays and the ranks should be equal
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions