public static void GetKnown(string word)
        {
            var checker = new CheckDictionary();
            var reader  = new Reader();

            var           dictText   = reader.Reader();
            List <string> knownWords = checker.GetAnagrams(dictText, word);

            if (knownWords.Count != 0)
            {
                for (int i = 0; i < knownWords.Count; i++)
                {
                    Console.WriteLine(knownWords[i]);
                }
            }
            else
            {
                Console.WriteLine("No known anagrams found.");
            }
        }
Ejemplo n.º 2
0
 private void Start()
 {
     dictionary = FindObjectOfType <CheckDictionary>();
 }