Skip to main content

This is a test project

Project description

nbdev_cards

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

Install

Install with pip:

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:

c = Card(suit=1, rank=1)
c
Card(rank=A, suit=dimonds)

Suits are numbered according to this list:

suits
['spades', 'dimonds', 'hearts', 'clovers']

and these ranks:

ranks
[None, 'A', '2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K']

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_playground_test-0.0.1.tar.gz (8.3 kB view hashes)

Uploaded Source

Built Distribution

nbdev_playground_test-0.0.1-py3-none-any.whl (8.0 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