def shell(): deck = Deck() deck.shuffle() while True: if deck.count_cards() > 15: play_hand(deck) else: deck = Deck() deck.shuffle() print("Reshuffling deck") print("Press enter to play another hand or type 'Quit' to exit") print(">>> ", end='') ans = input() if ans.lower() == 'quit': break