A playing cards package
Project description
cardnacki
Package for working w playing cards
0.1.2 (2025-07-20):
- added describe_poker_hand.py which contains a function of the same name that accepts and list of Card and returns a string representation of a poker hand outcome (ex. 'Full House' or 'High Card')
- also accepts an optional parameter of a tuple of winning hand possibilities (ex. adding in 'Royal Flush' or 'Jacks or Better')
0.1.1 (2024-12-29):
- added Pile.to_rank_suits() method (the inverse of Pile.create_from_rank_suits() introduced in 0.1.0)
0.1.0 (2024-12-28):
- introduced breaking changes to Pile
- initializer no longer requires a type_ attribute
- all attributes besides 'cards' must now be a kwarg
- getter now correctly needs to get one of its own cards, instead of constructing new cards from a random deck
- alternate constructor must now be given a deck, so it doesn't override any props specific to that deck (for example, a SetbackDeck receiving a game_point attribute)
- potential breaking change to Card
- removed attribute "game_points"
- added attribute dict "attributes", which a caller can added as needed
0.0.14 (2024-12-25):
- added getter for pile to access by rank_suit
0.0.13 (2024-12-25):
- added pile.PileStats.suit_has_any_ranks
0.0.12 (2024-12-25):
- added pile.PileStats
0.0.11 (2024-03-13):
- added back in a hard-coded id attribute
0.0.9 (2024-02-29):
- added equality method to Card
0.0.6 (2024-01-11):
- added an attribute for 'rank_full_name' e.g. "King"
- added an attribute for 'card_full_name' e.g. "Ace of Spades"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cardnacki-0.1.2.tar.gz
(7.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cardnacki-0.1.2.tar.gz.
File metadata
- Download URL: cardnacki-0.1.2.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55a79409b36e435b77f956084f1fa8b4bf0724efe2c22045255bc5a1469e49e4
|
|
| MD5 |
d2174436bd3f569dabd9e5d4b6c17202
|
|
| BLAKE2b-256 |
de0b41606343cb24eb54f87b0ae72cbb6a05f2fdb980b430153ac9d6ae189a26
|
File details
Details for the file cardnacki-0.1.2-py3-none-any.whl.
File metadata
- Download URL: cardnacki-0.1.2-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1184a9dfeaa0ee3c9b6d72d595adfb291e2a5de68d1b13e7cd99071c8ba9021
|
|
| MD5 |
d3b33b912cf750e7174669014066960a
|
|
| BLAKE2b-256 |
10a6d206038b0e4cfed032d35174886be20ea175ce8b9aa20ced77960d771ecc
|