drawCard method

bool drawCard(
  1. Card c
)

Implementation

bool drawCard(Card c) {
  if (deck.removeCard(c)) {
    _cards.push(c);
    return true;
  }
  return false;
}