A deck of cards demo of nbdev based on ideas from Think Python, 2nd edition by Allen B. Downey.
Install latest from the GitHub repository:
$ pip install git+https://github.com/kalch/nbdev_cards.gitor from conda
$ conda install -c kalch nbdev-cardsor from pypi
$ pip install nbdev-cardsDocumentation can be found hosted on this GitHub repository’s pages. Additionally you can find package manager specific guidelines on conda and pypi respectively.
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['♣️', '♦️', '♥️', '♠️']