예제 #1
0
        public bool Play()
        {
            DisplayAllScreen();

            if (m_game.IsGameOver())
            {
                m_view.DisplayGameOver(m_game.IsDealerWinner());
            }

            m_view.GetInput();

            if (m_view.WantsNewGame())
            {
                m_game.NewGame();
            }
            else if (m_view.WantsToHit())
            {
                m_game.Hit();
            }
            else if (m_view.WantsToStand())
            {
                m_game.Stand();
            }

            return(!m_view.WantsToQuit());
        }