コード例 #1
0
        public Player Setup()
        {
            var title = _drawingRepository.GetTitleArt();

            _drawingService.PrintArtCentered(title);

            _printService.TypeCentered("New Game", 8);
            _printService.TypeCentered("Continue");

            var gameType = _printService.ReadInput();

            if (gameType.ToUpper() == "NEW GAME")
            {
                return(newGame());
            }
            else if (gameType.ToUpper() == "CONTINUE")
            {
                return(continueGame());
            }
            else
            {
                _printService.Print("You must choose to start a New Game or Continue a saved game. Type your choice.");
                Thread.Sleep(4000);
                return(Setup());
            }
        }