Quickstart¶
Install with pip¶
>>> py -m pip install vox_cards
Basic Usage¶
1 2 3 4 5 6 7 8 9 10 11 12 | import vox_cards.deck as cards
deck = cards.Deck(2)
# Pass the number of hands to construct this deck with.
deck.deal() # The default number of cards to deal is 7
player_1, player_2 = deck.hands
for card in player_1: # Print all cards in the first hand.
print(card.full)
# Prints the full name of the card (i.e. "10 of Clubs").
|