Skip to main content

For producing a pseudo-randomized list of playing cards (♠️♦️♣️♥️). A (p)seudo (c)ard (s)huffle.

Project description

For producing a pseudo-randomized list of playing cards (♠️♦️♣️♥️).

Install

$ python -m pip install pcs
$ pipx install pcs

Usage

Outputs the list of cards to the console and optionally to a file.

Package

from pcs import CardShuffle, card_shuffle
import pcs

dealer = CardShuffle() # OR pcs.CardShuffle

dealer.shuffle_cards()

print(dealer.cards_text())
print(card_shuffle())
print(pcs.card_shuffle())

CLI

$ pcs -h
usage: card_shuffle.py [-h] [-w] [-g] [-n] [-c] [-a]

Producing a pseudo-randomized list of playing cards.

options:
 -h, --help       show this help message and exit
 -w, --write      Flag to set for writing output to a text file
 -g, --gui        Flag to set for displaying output using tkinter
 -n, --ndo        Flag to set for displaying demo using tkinter. Other options are ignored when set.
 -c, --cut        Flag to set for cutting the deck after the shuffle at a consecutive pair if found.
 -a, --arbitrary  Flag to set for cutting the deck after the shuffle at a random spot.

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

pseudo_card_shuffle-0.0.2.tar.gz (22.9 kB view details)

Uploaded Source

Built Distribution

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

pseudo_card_shuffle-0.0.2-py3-none-any.whl (24.0 kB view details)

Uploaded Python 3

File details

Details for the file pseudo_card_shuffle-0.0.2.tar.gz.

File metadata

  • Download URL: pseudo_card_shuffle-0.0.2.tar.gz
  • Upload date:
  • Size: 22.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for pseudo_card_shuffle-0.0.2.tar.gz
Algorithm Hash digest
SHA256 3520616d4dd01f669e197fd7bc7804255aae6e1d20aa8434837d0743bd7476cb
MD5 982dbc034f187be6afa955ce190ceee9
BLAKE2b-256 bcadd079eddcfec5eda2da149c502db7dd4cd18043e2bce90980c7a11d6300ef

See more details on using hashes here.

File details

Details for the file pseudo_card_shuffle-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pseudo_card_shuffle-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b76606cd1dc0dbbc84d3fe6e34a961be448d3b11017c0f711b5e52d5a2e8404c
MD5 4abe3cab2df1208f633540757ae56672
BLAKE2b-256 d04359292220bac71630340c154369dffec797df5a0031926651f16bb05a81e0

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