コード例 #1
0
        // sets up deck and starting position
        public void Intro()
        {
            Console.WriteLine("Welcome to BlackJack! Please enter your name!");
            Player.Name = Console.ReadLine();
            Console.WriteLine("How many decks would you like to use for this game?");
            DeckCountInput DCI          = new DeckCountInput();
            int            DecksToPlay  = DCI.TestForNumber();
            GenerateDeck   generateDeck = new GenerateDeck(DecksToPlay);

            DeckInUse = generateDeck.DeckUsed.DeckList;
        }
コード例 #2
0
        public GameSystem()
        {
            currentGame = new Game();
            currentGame.Intro();
            int          DecksToPlay = currentGame.DecksToPlay;
            GenerateDeck DeckToUse   = new GenerateDeck(DecksToPlay);


            while (!currentGame.isFinished)
            {
                currentGame.GameLoop();
            }
            ExitGame();
        }