Skip to main content

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

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nbdev-cards-0.0.1.tar.gz (8.4 kB view hashes)

Uploaded Source

Built Distribution

nbdev_cards-0.0.1-py3-none-any.whl (8.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page