isAce property

bool isAce

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);
}