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

Uploaded Python 3

File details

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

File metadata

  • Download URL: Ultimate_Card_Deck-0.0.1.tar.gz
  • Upload date:
  • Size: 3.5 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.1.tar.gz
Algorithm Hash digest
SHA256 3c98ad886a6d8dbd7219bd20a7c479d4dc9f4b6a617644e15b08e88de472594a
MD5 06a23e87245bfee42d90eeabdd856c99
BLAKE2b-256 674e8a8d6d8a13076cbce7d31f26c267e454eff15eda9b519cd551cfc3f62488

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Ultimate_Card_Deck-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0d3796e73afaea11b591a7cb558fffae915093838a12dcf965ccc7c06a70b9bb
MD5 03515dc8f10886ae338643ade1179ced
BLAKE2b-256 dd2b2e2241101aedb7f42b9d5b76d4a3e18d2306f9015b7166d7cfa407a6fc7b

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