/nbdev_cards

A sample of how to create a 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 you can use to create, display, and compare playing cards:

Card(1,3)
3♦️

Suits are numbered according to this list:

suits
['♣️', '♦️', '❤️', '♠️']