/**
 * Copyright (c) 2021 Dominic Masters
 * 
 * This software is released under the MIT License.
 * https://opensource.org/licenses/MIT
 */

#include "card.h"

void cardDeal(card_t *deck, card_t *hand, uint8_t deckSize, uint8_t handSize) {
  card_t card;
  card = deck[deckSize-1];
  deck[deckSize-1] = 0x00;
  hand[handSize] = card;
}