https://github.com/purplelemons-dev/deckpy
https://github.com/purplelemons-dev/deckpy
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/purplelemons-dev/deckpy
- Owner: purplelemons-dev
- License: gpl-3.0
- Created: 2024-12-28T08:17:51.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-30T13:10:50.000Z (over 1 year ago)
- Last Synced: 2025-08-30T01:58:36.228Z (10 months ago)
- Language: Python
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DeckPy
my custom card deck library
## Example
```py
from deckpy import Deck
deck = Deck()
deck.shuffle()
hands = deck.deal(num_hands=2, cards_per=2)
print(hands)
print(len(deck))
```
Output:
```
[Deck([Card('3 of SPADES'), Card('7 of HEARTS')]), Deck([Card('J of DIAMONDS'), Card('2 of DIAMONDS')])]
48
```