Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hand_eval #1

Open
BenjaminHorn opened this issue Feb 7, 2023 · 0 comments
Open

hand_eval #1

BenjaminHorn opened this issue Feb 7, 2023 · 0 comments

Comments

@BenjaminHorn
Copy link

BenjaminHorn commented Feb 7, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant