validCard method

  1. @override
Card validCard(
  1. Card cin
)
override

Validate that the Card passed is legal for this deck. Convert high and low aces if necessary.

Implementation

@override
Card validCard(Card cin) {
  Card cout;

  if (master.lowAces) {
    cout = Card.lowAceFix(cin);
  } else {
    cout = Card.highAceFix(cin);
  }
  assert(master.has(cout));
  return cout;
}