else
*s++ = ' ';
}
- if (y != 3)
+ if (y != (grid->size - 1))
*s++ = '\n';
}
*s = '\0';
dict_cursor = dict_cursor_next (dict_cursor, 'u');
}
- if (strlen (word) > 2 &&
+ /* For the 4x4 grid any word of length 3 or more counts.
+ * For the 5x5 grid any word of length 4 or more counts.
+ */
+ if (strlen (word) >= (grid->size - 1) &&
DICT_ENTRY_IS_WORD (dict_cursor_resolve (dict_cursor)))
{
dict_add_word (grid->results, word);