Ejemplo n.º 1
0
        public static void Main()
        {
            while (true)
            {
                Console.CursorVisible = false;

                EnvironmentSettings.SetEnvironment();

                var areTwoPlayersSelected = GamePlayManager.PlayersCountChoiceScreen();

                ConsoleKeyInfo difficultyLevelKey = GamePlayManager.ChooseDifficulty();
                Console.CursorVisible = false;

                var parsedDifficultyKey = int.Parse(difficultyLevelKey.KeyChar.ToString());

                ConsolePrinter.PrintFieldBorders(areTwoPlayersSelected);

                GamePlayManager.GamePlay(parsedDifficultyKey, areTwoPlayersSelected);

                GamePlayManager.GameOverMenu();
            }
        }