Skip to main content

Allows you to play with card decks

Project description

Deck of Cards

A basic card and deck class for playing around with cards. Cards are objects that have suits and numbers, with an id consisting of the number plus the first letter of the suit. Decks are arrays of card objects with some basic methods.

Getting Started

All you need to do is

pip install deckocards

and then you are done.

Prerequisites

You need:

  • Python 3 (preferably 3.6 and above)
  • pip package manager

Tests

There are automated tests built into the deck class. Simply run the deck.py file. This tests ensures that the card and deck objects are functioning. The output should be a series of decks in the console, along with the number of "flushes" that have occurred.

If no output is produced or an error occurs while running using this package, please email me here

Contributions

Feel welcome to contribute whatever you see fit to this project, as long as it improves its functionality.

License

The license can be found in the LICENSE.md file.

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

deckocards-0.0.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

deckocards-0.0.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: deckocards-0.0.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.1

File hashes

Hashes for deckocards-0.0.1.tar.gz
Algorithm Hash digest
SHA256 f807c2552d37e7c29fe199bf529141c2ce80722ef1d9311a01695d48ff95705b
MD5 2f843d3347d886c2a535f5438db2c775
BLAKE2b-256 a02ed1b196222fcdf42d7daac14b9579a6ded14580c7e561c9275720b9558bc7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: deckocards-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.1

File hashes

Hashes for deckocards-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cf19f6372dd16de7cbeee96a23932446c1e642cde28847ab91f57f175068d72e
MD5 e23bca33ae2fe20502579391aec449aa
BLAKE2b-256 a9106eae17294cc21a9ecad0a9685ef14297d553b1241ebb08017a9c15c4e23a

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