Exemple #1
0
        /// <summary>
        /// 給牌大小排名
        /// </summary>
        /// <param name="_PlayingCardGroup"></param>
        private void GiveRank(PlayingCardGroup _PlayingCardGroup)
        {
            for (int i = 0; i < _PlayingCardGroup.UnflippedsCount;)
            {
                PlayingCard P = _PlayingCardGroup.PumpingUnflop(0);
                if (P.Word == "2")
                {
                    P.WordRank = 13;
                }
                else if (P.Word == "A")
                {
                    P.WordRank = 12;
                }
                else if (P.Word == "K")
                {
                    P.WordRank = 11;
                }
                else if (P.Word == "Q")
                {
                    P.WordRank = 10;
                }
                else if (P.Word == "J")
                {
                    P.WordRank = 9;
                }
                else if (P.Ghost == false)
                {
                    P.WordRank = Convert.ToInt32(P.Word) - 2;
                }

                if (P.Pattern_Name == "黑桃")
                {
                    P.PatternRank = 4;
                }
                else if (P.Pattern_Name == "紅心")
                {
                    P.PatternRank = 3;
                }
                else if (P.Pattern_Name == "方塊")
                {
                    P.PatternRank = 2;
                }
                else if (P.Pattern_Name == "梅花")
                {
                    P.PatternRank = 1;
                }
            }
            for (int i = 0; i < _PlayingCardGroup.FlippedCardCount;)
            {
                _PlayingCardGroup.UnPumpingUnflop(0);
            }
        }
Exemple #2
0
 public SpecificSize(PlayingCardGroup _PlayingCardGroup)
 {
 }
Exemple #3
0
 /// <summary>
 /// 大老2比大小
 /// </summary>
 /// <param name="_PlayingCardGroup"></param>
 public BigTwoSpecificSize(PlayingCardGroup _PlayingCardGroup) : base(_PlayingCardGroup)
 {
     GiveRank(_PlayingCardGroup);
 }