/nbdevtesting

Testing out nbdev with some cards

Primary LanguageJupyter NotebookApache License 2.0Apache-2.0

nbdev_testing

A deck of cards demo of nbdev based on ideas from Think Python 2e book.

Install

Install using:

pip install nbdev-testing

or:

conda install -c fastai nbdev-testing

How to use

This lib provides a Card class which you can use to create, display, and compare playing cards:

Card(1, 3)
3♥

Suits are numbered according to this list:

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