Skip to content
Permalink
Browse files

Use Str types in LetterBoxedSolver

  • Loading branch information...
bobbymcr committed Apr 5, 2019
1 parent 91c48a7 commit c6f4bf5be68973674882e35ea783617b0bd97f25
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/LetterBoxedSolver/Solver.cs
@@ -21,14 +21,14 @@ private static void Main(string[] args)
return;
}

LetterBox box = new LetterBox(args[0]);
LetterBoxStr box = new LetterBoxStr(Str.Parse(args[0]));

Log("Loading trie...");
StringTrie trie = StringTrie.Load(File.OpenRead(args[1]));
StrTrie trie = StrTrie.Load(File.OpenRead(args[1]));
Log($"Loaded {trie.Count} words.");

LetterBoxSearch search = new LetterBoxSearch(trie, box);
LetterBoxWords words = new LetterBoxWords();
LetterBoxStrSearch search = new LetterBoxStrSearch(trie, box);
LetterBoxStrWords words = new LetterBoxStrWords();

Log("Finding valid words...");
search.Run((w, v) => words.Add(w, v));

0 comments on commit c6f4bf5

Please sign in to comment.
You can’t perform that action at this time.