Exemple #1
0
 public Node(string word, Node parent)
 {
     Word        = word;
     _parentNode = parent;
     Paths       = Traveler.LegalMoves(word, ref _dict).Except(TraceAncestry());
 }
Exemple #2
0
 public Node(string word)
 {
     Word  = word;
     _dict = Dictionary.GetWordsOfLength(Word.Length);
     Paths = Traveler.LegalMoves(word, ref _dict);
 }