Esempio n. 1
0
        /// <summary>
        /// Creates a new PlayingCard instance
        /// </summary>
        /// <param name="value">The card's value</param>
        /// <param name="suit">The card's suit</param>
        public PlayingCard(AllowedValues value, AllowedSuits suit)
        {
            Value = value;

            Suit = suit;
        }
Esempio n. 2
0
 /// <summary>
 /// Retrive the string counterpart to the AllowedSuits enum suit
 /// </summary>
 /// <param name="suit">Card suit from AllowedSuits</param>
 /// <returns>String representing the provided suit</returns>
 public static string GetSuitString(AllowedSuits suit)
 {
     return(SuitStrings[(int)suit]);
 }