validCard method
- 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;
}