Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while True:
- try:
- option = int(input("Pick an option:n1. Play Gamen2. Exitn>>> "))
- except ValueError:
- print('Invalid option.')
- continue
- if option == 1:
- cards = GenerateCards()
- Game(cards.computer_cards, cards.player_cards, cards.card_count)
- elif option == 2:
- print("Exiting...")
- break
- else:
- print("Invalid option.")
Add Comment
Please, Sign In to add comment