Guest User

Untitled

a guest
Dec 18th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. while True:
  2. try:
  3. option = int(input("Pick an option:n1. Play Gamen2. Exitn>>> "))
  4. except ValueError:
  5. print('Invalid option.')
  6. continue
  7. if option == 1:
  8. cards = GenerateCards()
  9. Game(cards.computer_cards, cards.player_cards, cards.card_count)
  10. elif option == 2:
  11. print("Exiting...")
  12. break
  13. else:
  14. print("Invalid option.")
Add Comment
Please, Sign In to add comment