Card
Card (suit=0, rank=2)
Represents a standard playing card.
Card (suit=0, rank=2)
Represents a standard playing card.
Card
is a class that represents a single card in a deck of cards. We can create cards like this:
In these docs we’ll generally show the expected output from our code like so:
These test_eq
statements are not just documentation, they are also unit tests! These cells will get tested automatically with continous integration. You can also run tests locally with the command nbdev_test
. If you do not want to show a test in your docs, you can choose to hide cells with the #|hide
directive.
You can also compare cards like so: