Exemplo n.º 1
0
        /// <summary>
        /// Swaps Values by their indeces in List DS
        /// </summary>
        ///
        private static void IndexSwap(List <CorrectWord> list, int ind1, int ind2)
        {
            CorrectWord temp = list[ind1];

            list[ind1] = list[ind2];
            list[ind2] = temp;
        }
Exemplo n.º 2
0
 public LingoWord(string word)
 {
     if (word.Length != 5)
     {
         throw new ArgumentException("This Lingo board only supports 5 letter words");
     }
     word = word.ToLowerInvariant();
     foreach (char character in word)
     {
         CorrectWord.Add(new LingoLetter(character));
     }
 }