]> git.cworth.org Git - wordgame/blobdiff - grid.c
Hide implementation details of dict in dict-impl.h. Add automatic dependency computat...
[wordgame] / grid.c
diff --git a/grid.c b/grid.c
index b9c307bafd50e7a2e49c8b4653802de8a5ec6686..78c6c56d1370564c5165541a37f5be2192346174 100644 (file)
--- a/grid.c
+++ b/grid.c
@@ -176,7 +176,8 @@ main (void)
     gettimeofday (&tv, NULL);
     srand (tv.tv_sec ^ tv.tv_usec);
 
-    dict_init (&dict, "words.txt");
+    dict_init (&dict);
+    dict_add_words_from_file (&dict, "words.txt");
     board_init (&board);
 
     solution = trie_create ();