from playing_cards import Card, Deck, PokerHand

hand_types = ['high card', 'one pair', 'two pair', 'three of a kind', 'straight', 'flush', 'full house', 'four of a kind', 'straight flush']

d = Deck()
d.shuffle()

ph1 = PokerHand()
ph2 = PokerHand()

# do this 5 times
for _ in range(5):
    # deal 1 card each to each player
    ph1.add_to_hand(d.deal())
    ph2.add_to_hand(d.deal())

print('Player 1 hand:\n' + str(ph1))
hand1_val = ph1.determine_hand() # will return a # 0 .. 8
print('Player 1 has a', hand_types[hand1_val])
print()

print('Player 2 hand:\n' + str(ph2))
hand2_val = ph2.determine_hand() # will return a # 0 .. 8
print('Player 2 has a', hand_types[hand2_val])

