diff options
| author | Mario Kilies <MarioKilies@GMX.net> | 2011-01-25 09:38:02 +0100 |
|---|---|---|
| committer | Mario Kilies <MarioKilies@GMX.net> | 2011-01-25 09:38:02 +0100 |
| commit | 8e05dde9c2f15c2a68039d64b15337f06ec0c1b7 (patch) | |
| tree | 14f7869b17500ea0a06b307250f14dfca8b63f08 /src/hand.c | |
| parent | f11615206afc02bdc911fed5828ab881e3046380 (diff) | |
Remove chosen card from hand.
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; +} |
