X-Git-Url: https://git.cworth.org/git?p=wordgame;a=blobdiff_plain;f=grid.c;h=fe3d5402d2b52fbcdfb8a49f51e0ffde2da949ce;hp=76428d98bad2b6275c635f635bbef7fdc0d4b852;hb=ea2a992111737eccb174f26f71ab5357597d5147;hpb=95950fcacd327b24eb22bad24d15f377c0640e2c diff --git a/grid.c b/grid.c index 76428d9..fe3d540 100644 --- a/grid.c +++ b/grid.c @@ -136,8 +136,11 @@ board_enumerate (board_t *board, dict_cursor = dict_cursor_next (dict_cursor, 'u'); } - if (DICT_ENTRY_IS_WORD (dict_cursor_resolve (dict_cursor))) + if (strlen (word) > 2 && + DICT_ENTRY_IS_WORD (dict_cursor_resolve (dict_cursor))) + { dict_add_word (board->results, word); + } for (dy = -1; dy <= 1; dy++) for (dx = -1; dx <= 1; dx++)