Example #1
0
 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));
 }