Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Console.WindowWidth = 100;
            Console.WindowHeight = 50;
            bool replay = false;

            GameManager game = new GameManager();

            game.DisplayWelcomeMessage();
            game.RequestPlayerName();

            do
            {
                game.SetUp();
                game.PlayGame();

                Console.Write("Would you like to play again Y or N? ");
                string newGame = Console.ReadLine().ToUpper();
                if (newGame == "Y")
                {
                    Console.Clear();
                    replay = true;
                }
                else
                {
                    replay = false;
                    Console.WriteLine("Thank you for playing!");
                }
            } while (replay);

            Console.ReadLine();
        }
Exemplo n.º 2
0
 static void Main(string[] args)
 {
     GameManager gm = new GameManager();
     gm.StartGame();
 }
Exemplo n.º 3
0
 private void CreateGameManagerInstance()
 {
     _manager = new GameManager();
     _manager.Start();
 }