Esempio n. 1
0
        public bool Play()
        {
            if (game.IsGameOver())
            {
                view.DisplayGameOver(game.IsDealerWinner());
            }

            view.SetInputOption();

            if (view.doesUserWantToPlay())
            {
                game.NewGame();
            }
            else if (view.doesUserWantToHit())
            {
                game.Hit();
            }
            else if (view.doesUserWantToStand())
            {
                game.Stand();
            }
            else if (view.doesUserWantToQuit())
            {
                return(false);
            }
            return(true);
        }