A sample of how to create a deck of cards lib using nbdev
Project description
nbdev_cards
A deck of cards demo of nbdev based on ideas from Think Python 2nd Edition by Allen B. Downey.
Install
Install using:
pip install nbdev-cards
or:
conda install -c fastai nbdev-cards
How to use
This lib provides a Card class you can use to create, display, and compare playing cards:
Card(1,3)
3♦️
Suits are numbered according to this list:
suits
['♣️', '♦️', '❤️', '♠️']
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
nbdev-cards-0.0.1.tar.gz
(8.4 kB
view hashes)
Built Distribution
Close
Hashes for nbdev_cards-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d63bc6fa6fcb9976b8f29f059d0355007d4848cc9538be1dd287ae259d18cb35 |
|
MD5 | 193fd78a52b0b72af3f5a58039063bc9 |
|
BLAKE2b-256 | 35afe3fbd9fe488f4dbdd9e4f1249404de880b66c01381b9a2a2cd9da2235249 |