Esempio n. 1
0
        /// <summary>
        /// Creates a new standard card.
        /// Standard cards have no extra rules associated with them other than the rules of the game they are used in.
        /// </summary>
        /// <param name="suit">The suit of the card.</param>
        /// <param name="val">The value of the card.</param>
        /// <param name="name">If the card can not be refereded to by its value and suit then provide the name of the card here.</param>
        public StandardCard(CardSuit suit, CardValue val, string name = null)
        {
            Suit  = suit.Clone();
            Value = val.Clone();

            Name = name;
            return;
        }