API details.

class Card[source]

Card(suit=0, rank=2)

Represents a standard playing card.

Attributes: suit: integer 0-3 rank: integer 1-13

Card(suit=2, rank=11)
Jack of Hearts
c = Card(suit=1, rank=3)
assert str(c) == '3 of Diamonds'

c2 = Card(suit=2, rank=11)
assert str(c2) == 'Jack of Hearts'
assert c2 > c
from nbdev.export import notebook2script; notebook2script()
Converted 00_card.ipynb.
Converted index.ipynb.