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.3.tar.gz (3.6 kB 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.3-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: Ultimate_Card_Deck-0.0.3.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • 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.3.tar.gz
Algorithm Hash digest
SHA256 64ce04630539bba566526f07f2105d77754644635b6a433d401c381f8d65fe21
MD5 165e7907d1ae660339159c1b8e882348
BLAKE2b-256 dc10d5bbc7e613511cf7adc8752f7aae619423c350e32d8f7800731f35427d35

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Ultimate_Card_Deck-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 89bf6a8624d53ac83135b123c7f97f2d8149e8dbf92e600e384c20d1c5910d9b
MD5 4592b266c5b70bcf3be699d0cd3f7dab
BLAKE2b-256 66c1327eac13e7e665c5b9142b122d0ff206872ffd5d9b0e56fcf00d944b05e4

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