Exemplo n.º 1
0
        private static Bot.DifficultyLevel ObtainDifficulty()
        {
            Console.WriteLine("Select bot difficulty:\n{0} - easy\n{1} - medium\n{2} - hard",
                              (byte)Bot.DifficultyLevel.Easy, (byte)Bot.DifficultyLevel.Medium, (byte)Bot.DifficultyLevel.Hard);

            Bot.DifficultyLevel diff = (Bot.DifficultyLevel)ConsoleUtils.InputInt((byte)Bot.DifficultyLevel.Easy, (byte)Bot.DifficultyLevel.Medium, (byte)Bot.DifficultyLevel.Hard);
            Console.WriteLine("\n");
            return(diff);
        }
Exemplo n.º 2
0
        private void SetupBotMode()
        {
            bot = new Bot();
            string chosenName = ObtainPlayerName(1);

            if (chosenName.Any())
            {
                player1.Name = chosenName;
            }

            Bot.DifficultyLevel difficulty = ObtainDifficulty();
            bot.Difficulty = difficulty;
        }