예제 #1
0
        private void SeatSuit2String(Seats seat, Suits suit, StringBuilder result)
        {
            result.Append(SuitHelper.ToXML(suit) + " ");
            int length = 0;

            for (Ranks rank = Ranks.Ace; rank >= Ranks.Two; rank--)
            {
                if (this.Owns(seat, suit, rank))
                {
                    result.Append(Rank.ToXML(rank));
                    length++;
                }
            }

            for (int l = length + 1; l <= 13; l++)
            {
                result.Append(" ");
            }
        }
예제 #2
0
 public void Add(VirtualRanks rank)
 {
     thisSet += Rank.ToXML((Ranks)rank);
 }
예제 #3
0
        public bool Contains(VirtualRanks rank)
        {
            string s = Rank.ToXML((Ranks)rank);

            return(thisSet.IndexOf(s) >= 0);
        }