Ejemplo n.º 1
0
        public void SecondPlayer()
        {
            Console.WriteLine("Enter 1 to play against another Human.");
            Console.WriteLine("Enter 2 to play against a Computer");
            int ans = Convert.ToInt32(Console.ReadLine());

            switch (ans)
            {
            case 1:
                player2 = new Human();
                break;

            case 2:
                player2 = new Computer();
                break;

            default:
                Console.WriteLine("Please enter either 1 for a Human or 2 for a Computer");
                break;
            }
        }
Ejemplo n.º 2
0
 public Game()
 {
     player1 = new Human();
 }