diff options
Diffstat (limited to 'src/hand.c')
| -rw-r--r-- | src/hand.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -17,3 +17,10 @@ void hand_sort(hand_t *h) qsort(h->cards, MAX_HAND_CARDS, sizeof(card), hand_comparator); } + +void hand_remove_card(hand_t *h, const uint8_t card_index) +{ + assert(h != NULL); + + h->cards[card_index] = 0; +} |
