nbdev_cards

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

A deck of cards demo of nbdev based on ideas from Think Python 2nd edition

Install

Install using:

pip install 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
['♣️', '♦️', '♥️', '♠️']