-
-#define GAME_LENGTH (3 * 60)
-int
-main (void)
-{
- dict_t dict, solution;
- grid_t grid;
- char grid_string[GRID_STRING_MAX];
- struct timeval tv;
-
- gettimeofday (&tv, NULL);
- srand (tv.tv_sec ^ tv.tv_usec);
-
- dict_init (&dict);
- dict_add_words_from_file (&dict, "words.txt");
-
- grid_init (&grid);
- grid_to_string (&grid, grid_string);
-
- dict_init (&solution);
- grid_solve (&grid, &dict, &solution);
-
- word_game_play (grid_string, &dict, &solution, GAME_LENGTH);
-
- dict_fini (&solution);
- dict_fini (&dict);
-
- return 0;
-}