Example #1
0
        public bool Play()
        {
            Display();
            UserAction userAction = m_view.GetUserAction();

            switch (userAction)
            {
            case UserAction.Play:   { m_game.NewGame(); break; }

            case UserAction.Hit:    { m_game.Hit(); break; }

            case UserAction.Stand:  { m_game.Stand(); break; }

            case UserAction.Quit:  { return(false); }

            default: break;
            }
            return(true);
        }