A deck of cards demo of nbdev based on ideas from Think Python 2nd edition
Install using:
pip install nbdev-cards
or:
conda install -c fastai nbdev-cards
pip install your_project_name
This lib provides a Card class you can use to create, display and compare playing cards:
Card(1,rank=3)
3,♦️
Suits are numbered according to this list:
suits
('♣️', '♦️', '♥️', '♠️')
Card(1,3) < Card(2,3)
TypeError: '<' not supported between instances of 'Card' and 'Card'