Beispiel #1
0
        public void ChangeState(int playId, int playResult)
        {
            if (playId == 1)
            {
                SetState(primaryState);
            }
            else if (playId == 2)
            {
                SetState(secondState);
            }
            else if (playId == 3)
            {
                SetState(professionState);
            }
            else if (playId == 4)
            {
                SetState(finalState);
            }

            curState.Play();
            curState.DoubleScore(playResult);
            curState.ChangeCards();
            curState.PeekCards();
        }