highRank property

Rank? highRank

What's the rank of this card, with low aces made high?

Implementation

Rank? get highRank {
  if (index < Card.LowAceOfClubs.index || index > Card.AceOfSpades.index) {
    return null;
  }
  if (index < Card.DeuceOfClubs.index) return Rank.Ace;
  return Rank.values[index >> 2];
}