Skip to main content

A deck of cards with basic functionality

Project description

Deck-of-Cards

Copyright <2022> MIT license

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

This is simply a deck of cards with images and some functionality.

  • Create a deck
  • New deck
  • Multiple decks (default=1 deck)
  • Jokers (default=False)
  • Shuffle
  • Hit single card. Returns a class card
  • Hit multiple cards (default=2). Returns a list of cards

card class members.

  • suits:'hearts' 'diamonds' 'clubs' 'spades'
  • rank: 0 = joker, 2-10, 11-14 for jack through ace, 1 = ace if not ace high
  • rank name: 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten', 'jack', 'queen', 'king', 'ace', 'joker'
  • color: 'red' 'black'
  • image: Display image for card

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Ultimate_Card_Deck-0.0.4.tar.gz (5.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Ultimate_Card_Deck-0.0.4-py3-none-any.whl (5.1 MB view details)

Uploaded Python 3

File details

Details for the file Ultimate_Card_Deck-0.0.4.tar.gz.

File metadata

  • Download URL: Ultimate_Card_Deck-0.0.4.tar.gz
  • Upload date:
  • Size: 5.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for Ultimate_Card_Deck-0.0.4.tar.gz
Algorithm Hash digest
SHA256 3ef23c901d664ccf8b3c3d20866b83a90d80162bf8e0ca0837c299f038e94662
MD5 635070334bd2638ae34e4a1515032679
BLAKE2b-256 4b0203d847ca563af9b089afbdf7900e354afe86940b9edd8f3438e7255693ff

See more details on using hashes here.

File details

Details for the file Ultimate_Card_Deck-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for Ultimate_Card_Deck-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8945289aab6962804a515df83e0ea666e11f7843a21b5997aeaa6bc590ebc8c7
MD5 dfe6c03916a06322943a4ce2df2fe27e
BLAKE2b-256 e07f28ab663f481d3077406445cd65732fc403b35cda2631ff914fd080d52a0c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page