

<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->

### Card - A basic playing Card

A simple API for creating playing card

------------------------------------------------------------------------

<a
href="https://github.com/majarall/nbdev-project/blob/main/nbdev_project/card.py#L12"
target="_blank" style="float:right; font-size:smaller">source</a>

### Card

>  Card (suit:int, rank:int)

*A playing card, created by passing in rank from ranks and suit from
suits*

<table>
<thead>
<tr>
<th></th>
<th><strong>Type</strong></th>
<th><strong>Details</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>suit</td>
<td>int</td>
<td>An index into suits</td>
</tr>
<tr>
<td>rank</td>
<td>int</td>
<td>An index into ranks</td>
</tr>
</tbody>
</table>

### Comparison Operators

Equality, less than and greater than work on the rank and indicies

``` python
@patch
def __eq__(self:Card, a:Card): return (self.suit, self.rank) == (a.suit, a.rank)
```
