def test_flush_5(): hand = texas_poker.PokerTable( board=["QH", "QD", "KH", "KD", "JD"], player_dict={"Player1": ["3D", "5D"]}, ) assert hand.player_list[0].best_hand == "Flush" assert hand.player_list[0].get_player_hand_strength[0] == 600
def test_flush_3(): hand = texas_poker.PokerTable( board=["2D", "4D", "6D", "8D", "TD"], player_dict={"Player1": ["TH", "5C"]}, ) assert hand.player_list[0].best_hand == "Flush" assert hand.player_list[0].get_player_hand_strength[0] == 600
def test_flush_4(): hand = texas_poker.PokerTable( board=["2S", "4S", "AD", "5S", "KS"], player_dict={"Player1": ["AS", "TD"]}, ) assert hand.player_list[0].best_hand == "Flush" assert hand.player_list[0].get_player_hand_strength[0] == 600
def test_straight_8(): hand = texas_poker.PokerTable( board=["3D", "4D", "5D", "6S", "7C"], player_dict={"Player1": ["4C", "KH"]}, ) assert hand.player_list[0].best_hand == "Straight" assert hand.player_list[0].get_player_hand_strength[0] == 500
def test_flush(): hand = texas_poker.PokerTable( board=["3H", "5H", "7H", "8H", "TH"], player_dict={"Player1": ["9C", "TC"]}, ) assert hand.player_list[0].best_hand == "Flush" assert hand.player_list[0].get_player_hand_strength[0] == 600
def test_straight_6(): hand = texas_poker.PokerTable( board=["AH", "KC", "QS", "JH", "7D"], player_dict={"Player1": ["TH", "7C"]}, ) assert hand.player_list[0].best_hand == "Straight" assert hand.player_list[0].get_player_hand_strength[0] == 500
def test_straight_7(): hand = texas_poker.PokerTable( board=["6D", "TD", "3H", "9D", "8D"], player_dict={"Player1": ["2S", "7S"]}, ) assert hand.player_list[0].best_hand == "Straight" assert hand.player_list[0].get_player_hand_strength[0] == 500
def test_straight_3(): hand = texas_poker.PokerTable( board=["AH", "2D", "3C", "4D", "8S"], player_dict={"Player1": ["5S", "TH"]}, ) assert hand.player_list[0].best_hand == "Straight" assert hand.player_list[0].get_player_hand_strength[0] == 500
def test_straight_5(): hand = texas_poker.PokerTable( board=["AH", "AS", "3S", "4H", "5D"], player_dict={"Player1": ["TD", "2C"]}, ) assert hand.player_list[0].best_hand == "Straight" assert hand.player_list[0].get_player_hand_strength[0] == 500
def test_straight_2(): hand = texas_poker.PokerTable( board=["3H", "4S", "5C", "6D", "7S"], player_dict={"Player1": ["TH", "QH"]}, ) assert hand.player_list[0].best_hand == "Straight" assert hand.player_list[0].get_player_hand_strength[0] == 500
def test_3_4(): hand = texas_poker.PokerTable( board=["TD", "JH", "8S", "9S", "5C"], player_dict={"Player1": ["TH", "TS"]}, ) assert hand.player_list[0].best_hand == "3 Of A Kind" assert hand.player_list[0].get_player_hand_strength[0] == 400
def test_3_3(): hand = texas_poker.PokerTable( board=["AH", "4S", "KC", "3D", "TS"], player_dict={"Player1": ["3C", "3H"]}, ) assert hand.player_list[0].best_hand == "3 Of A Kind" assert hand.player_list[0].get_player_hand_strength[0] == 400
def test_fh(): hand = texas_poker.PokerTable( board=["8H", "8S", "8C", "3D", "3S"], player_dict={"Player1": ["7C", "9C"]}, ) assert hand.player_list[0].best_hand == "Full House" assert hand.player_list[0].get_player_hand_strength[0] == 700
def test_fh_3(): hand = texas_poker.PokerTable( board=["5H", "5S", "5C", "8D", "8S"], player_dict={"Player1": ["9C", "2H"]}, ) assert hand.player_list[0].best_hand == "Full House" assert hand.player_list[0].get_player_hand_strength[0] == 700
def test_tp_3(): hand = texas_poker.PokerTable( board=["QH", "QD", "KH", "KD", "JD"], player_dict={"Player1": ["JH", "8C"]}, ) assert hand.player_list[0].best_hand == "Two Pair" assert hand.player_list[0].get_player_hand_strength[0] == 300
def test_tp_2(): hand = texas_poker.PokerTable( board=["8H", "8D", "4C", "4D", "TS"], player_dict={"Player1": ["9H", "2C"]}, ) assert hand.player_list[0].best_hand == "Two Pair" assert hand.player_list[0].get_player_hand_strength[0] == 300
def test_rf_4(): hand = texas_poker.PokerTable( board=["QC", "TC", "KC", "AC", "JC"], player_dict={"Player1": ["9C", "8C"]}, ) assert hand.player_list[0].best_hand == "Royal Flush" assert hand.player_list[0].get_player_hand_strength[0] == 1000
def test_op_4(): hand = texas_poker.PokerTable( board=["8H", "QD", "5C", "4D", "TS"], player_dict={"Player1": ["4H", "KD"]}, ) assert hand.player_list[0].best_hand == "One Pair" assert hand.player_list[0].get_player_hand_strength[0] == 200
def test_op(): hand = texas_poker.PokerTable( board=["2H", "3S", "AC", "AD", "TS"], player_dict={"Player1": ["4C", "6S"]}, ) assert hand.player_list[0].best_hand == "One Pair" assert hand.player_list[0].get_player_hand_strength[0] == 200
def test_rf_3(): hand = texas_poker.PokerTable( board=["AS", "KH", "QH", "JH", "TH"], player_dict={"Player1": ["AH", "3C"]}, ) assert hand.player_list[0].best_hand == "Royal Flush" assert hand.player_list[0].get_player_hand_strength[0] == 1000
def test_sf_3(): hand = texas_poker.PokerTable( board=["5S", "4S", "3S", "2S", "AS"], player_dict={"Player1": ["3C", "3D"]}, ) assert hand.player_list[0].best_hand == "Straight Flush" assert hand.player_list[0].get_player_hand_strength[0] == 900
def test_sf_4(): hand = texas_poker.PokerTable( board=["5D", "4D", "3D", "6D", "7D"], player_dict={"Player1": ["AD", "8D"]}, ) assert hand.player_list[0].best_hand == "Straight Flush" assert hand.player_list[0].get_player_hand_strength[0] == 900
def test_4_4(): hand = texas_poker.PokerTable( board=["AH", "AC", "TS", "TC", "AD"], player_dict={"Player1": ["TD", "TH"]}, ) assert hand.player_list[0].best_hand == "4 Of A Kind" assert hand.player_list[0].get_player_hand_strength[0] == 800
def test_sf_2(): hand = texas_poker.PokerTable( board=["6H", "TH", "3H", "4H", "5H"], player_dict={"Player1": ["2H", "TD"]}, ) assert hand.player_list[0].best_hand == "Straight Flush" assert hand.player_list[0].get_player_hand_strength[0] == 900
def test_4_2(): hand = texas_poker.PokerTable( board=["8H", "8S", "8C", "8D", "TS"], player_dict={"Player1": ["2H", "3C"]}, ) assert hand.player_list[0].best_hand == "4 Of A Kind" assert hand.player_list[0].get_player_hand_strength[0] == 800
def test_hc_4(): hand = texas_poker.PokerTable( board=["QH", "5D", "KS", "TD", "2D"], player_dict={"Player1": ["3S", "7S"]}, ) assert hand.player_list[0].best_hand == "High Card" assert hand.player_list[0].get_player_hand_strength[0] == 100
def test_hc(): hand = texas_poker.PokerTable( board=["2H", "4S", "6C", "8D", "TS"], player_dict={"Player1": ["AH", "KD"]}, ) assert hand.player_list[0].best_hand == "High Card" assert hand.player_list[0].get_player_hand_strength[0] == 100
def test_fh_4(): hand = texas_poker.PokerTable( board=["KH", "KC", "3S", "3H", "3D"], player_dict={"Player1": ["TH", "KD"]}, ) assert hand.player_list[0].best_hand == "Full House" assert hand.player_list[0].get_player_hand_strength[0] == 700
def test_3(): hand = texas_poker.PokerTable(board=['AH', 'AS', 'AC', '8D', 'TS'], player_dict={'Player1': ['7C', '3H']}) assert (hand.player_list[0].best_hand == '3 Of A Kind') assert hand.player_list[0]._get_hand_value()[0] == 400
def test_3_2(): hand = texas_poker.PokerTable(board=['TS', 'JH', '8S', '9S', 'TC'], player_dict={'Player1': ['TH', '2S']}) assert (hand.player_list[0].best_hand == '3 Of A Kind') assert hand.player_list[0]._get_hand_value()[0] == 400