Пример #1
0
        public void StartGame()
        {
            Console.Title = GameTitle;
            DisplayStartScreen();

            while (!board.IsGameOver())
            {
                board.CheckUserInput();
                board.Update();
                board.Draw();
                Thread.Sleep(TimeStep);
            }

            Console.SetCursorPosition(Console.WindowWidth / 2 - GameOverMsg.Length / 2, Console.WindowHeight / 2);
            Console.ForegroundColor = ConsoleColor.Black;
            Console.BackgroundColor = ConsoleColor.White;
            Console.Write(GameOverMsg);
            Console.ReadLine();
        }