예제 #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("--------------------------------------------------------------");
            Console.WriteLine("Welcome! to Kaijus vs Robots! Press Enter to Start the game...");
            Console.WriteLine("--------------------------------------------------------------\n");
            Console.ReadLine();
            Battlefield battlefield = new Battlefield();

            battlefield.SimulateProgram();
            Console.ReadLine();
        }
예제 #2
0
        //replay method
        public void WantToPlayAgain()
        {
            Console.WriteLine("\nWould you like to play again?(Type Y/N): ");
            string playAgain = Console.ReadLine();

            switch (playAgain)
            {
            case "Y":
            case "y":
                Console.Clear();
                Console.WriteLine("--------------------------------------------------------------");
                Console.WriteLine("Welcome! to Kaijus vs Robots! Press Enter to Start the game...");
                Console.WriteLine("--------------------------------------------------------------\n");
                Console.ReadLine();
                Battlefield newGame = new Battlefield();
                newGame.SimulateProgram();
                break;

            default:
                Console.WriteLine("\nThankyou for playing!");
                Console.ReadLine();
                break;
            }
        }