예제 #1
1
        static void Main(string[] args)
        {
            Console.WriteLine("Rock, Paper, Scissors...");
            Game newGame = new Game();

            string input = "";

            Player p1 = new HumanPlayer("Player 1");
            Player p2 = new ComputerPlayer("Player 2");

            do
            {
                newGame.PlayRound(p1, p2);

                Console.WriteLine("Press Enter to play again or (Q) to quit.");
                input = Console.ReadLine();

            } while (input.ToUpper() != "Q");
        }
예제 #2
0
파일: Program.cs 프로젝트: mdrozda46/cohort
        static void Main(string[] args)
        {
            Console.WriteLine("Rock, Paper, Scissors...");
            Game newGame = new Game();

            string input = "";

            Player p1 = new ComputerPlayer("Player 1");
            Player p2 = new ComputerPlayer("Player 2");

            do
            {
                newGame.PlayRound(p1,p2);

                Console.WriteLine("Would you like to play again? (enter \"Q\" to Quit)");
                input = Console.ReadLine();

            } while (input.ToUpper() != "Q");
        }