isAce property
Is this card an ace?
Implementation
bool get isAce {
return (index >= Card.LowAceOfClubs.index &&
index <= Card.LowAceOfSpades.index) ||
(index >= Card.AceOfClubs.index && index <= Card.AceOfSpades.index);
}
Is this card an ace?
bool get isAce {
return (index >= Card.LowAceOfClubs.index &&
index <= Card.LowAceOfSpades.index) ||
(index >= Card.AceOfClubs.index && index <= Card.AceOfSpades.index);
}