From ea2a992111737eccb174f26f71ab5357597d5147 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Sat, 23 Sep 2006 21:41:00 -0700 Subject: [PATCH] grid: Don't consider 2-letter words as valid. --- grid.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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++) -- 2.43.0