A simple ASCII card display package
Project description
ASCII Playing Cards
This project provides a Python script to generate ASCII art representations of playing cards. The script is designed to print out cards with the rank and suit clearly visible, suitable for console-based card games or other educational purposes.
Features
- Displays ASCII art of playing cards.
- Supports all ranks from 2 to Ace and suits (Spades, Hearts, Diamonds, Clubs).
- Can be easily integrated into other Python-based card games.
Requirements
To run this script, you need Python 3.x. No external libraries are required as it only uses standard libraries.
Usage
To use the ASCII card printer, simply import the function and call it with the rank and suit:
from cards import print_card
# Print an Ace of Spades
print_card('A', '♠')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file simple_ascii_cards-0.1.tar.gz
.
File metadata
- Download URL: simple_ascii_cards-0.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 411bb48c54e8061f1584861d41ac1eebe8bfc1233504741712905effb1a837bd |
|
MD5 | 9e568e3a81b5fd7eb745936522a88e34 |
|
BLAKE2b-256 | 1b7a6a90b03691dc1f7931a732189eb562c12be8ca82f5463d3f2a79e0e69d26 |
File details
Details for the file simple_ascii_cards-0.1-py3-none-any.whl
.
File metadata
- Download URL: simple_ascii_cards-0.1-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6ffeb870685de3bda75ea42a2e9f3b7535dd84dd1d46c70a8d1c57f83b64090 |
|
MD5 | 17e918002f2d83e607c812f225c16a0e |
|
BLAKE2b-256 | 9b460df87fdc4cdc5898df854a364379ba449b577fa6a0517c1b0b6ceab7508f |