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); }
private void SetupBotMode() { bot = new Bot(); string chosenName = ObtainPlayerName(1); if (chosenName.Any()) { player1.Name = chosenName; } Bot.DifficultyLevel difficulty = ObtainDifficulty(); bot.Difficulty = difficulty; }