EmbraceLife / nbdev_cards

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

Home Page:https://fastai.github.io/nbdev_cards/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

https://fastai.github.io/nbdev_cards/

License:Apache License 2.0


Languages

Language:Jupyter Notebook 66.0%Language:Python 32.5%Language:CSS 1.4%