summaryrefslogtreecommitdiff
path: root/src/hand.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hand.c')
-rw-r--r--src/hand.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/hand.c b/src/hand.c
index 42ecc05..3853697 100644
--- a/src/hand.c
+++ b/src/hand.c
@@ -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;
+}