public void CreateDeck() { foreach (string item in _characterList) { Deck.Add(CharacterFactory.Build(item)); } }
public void CreateDeck() { do { string input = Console.ReadLine(); if (CheckCharacterName(input) && !CheckDeck(input)) { Deck.Add(CharacterFactory.Build(input)); Console.WriteLine($"{input} added successfully."); } else { Console.WriteLine("Please enter the character name again."); } } while (Deck.Count < (CHARACTERCOUNT + Level)); }