MasterAI-2.0-1vs1-NoLimit icon indicating copy to clipboard operation
MasterAI-2.0-1vs1-NoLimit copied to clipboard

hand_eval

Open BenjaminHorn opened this issue 2 years ago • 0 comments

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

BenjaminHorn avatar Feb 07 '23 20:02 BenjaminHorn