Advertisement
Alekal

Untitled

Dec 4th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. def __init__(self, deck: Deck, view: 'BlackjackView'):
  2. """
  3. Start new blackjack game.
  4.  
  5. :param deck: deck to draw cards from.
  6. :param view: view to communicate with.
  7. """
  8. if deck.is_shuffled is False:
  9. deck.shuffle()
  10. if deck.is_shuffled is True:
  11. self.player = Hand()
  12. self.PyCharm = Hand()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement