예제 #1
0
        public override void CheckCardPoint()
        {
            SetHandCardPoint();

            if (HandCardPoint == 0)
            {
                return;
            }

            if (HandCardPoint > 21)
            {
                StateMark.ShowLostMark();
                ShowPoint(HandCardPoint);
                return;
            }


            //当玩家有A且没有超过21点时,可能出现两个数字
            if (HaveAce)
            {
                if (HandCardPoint + 10 == 21)
                {
                    if (OnesPokerCount == 2)
                    {
                        StateMark.ShowBalckJackMark();
                    }

                    ShowPoint(21);
                }
                else if (HandCardPoint + 10 < 21)
                {
                    ShowPoint(HandCardPoint + 10);
                }
                else
                {
                    ShowPoint(HandCardPoint);
                }
            }
            else
            {
                ShowPoint(HandCardPoint);
            }
        }