コード例 #1
0
        public void GamePlay()
        {
            String playAgain = "y";

            while (playAgain == "y")
            {
                var winner = game.Play();
                Console.WriteLine("Winner: " + winner);
                incrementWins(winner);
                Console.WriteLine(showScoreCard());
                Console.WriteLine("Would you like to play again(y or n)?");
                playAgain = Console.ReadLine().ToLower();
                game.resetGame();
            }
        }