Beispiel #1
0
        private static int GetMajorCardValue(MajorCardType majorCardType)
        {
            switch (majorCardType)
            {
            case MajorCardType.Ace: return(14);

            case MajorCardType.King: return(13);

            case MajorCardType.Queen: return(12);

            case MajorCardType.Jack: return(11);

            default: throw new ArgumentException();
            }
        }
Beispiel #2
0
 public MajorCardNomination(MajorCardType majorCardType)
     : base(GetMajorCardValue(majorCardType))
 {
 }