/nbdev_cards

A sample of how to create deck of cards lib using nbdev

Primary LanguageJupyter NotebookApache License 2.0Apache-2.0

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 that you can use to create, display, and compare playing cards:

Card(1, 3)
3 ♠

Suits are numbered according to this list:

suits
['♣', '♠', '♦', '♥']