X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=drill2.c;h=189437cb1526cd4720c23dfee3b6ee2d339937fb;hb=ea2a992111737eccb174f26f71ab5357597d5147;hp=6f4a26c0fbc744d7b2edca589617003ce29fed1c;hpb=4af5ce4dd24d24df0909f75106c06514f565954d;p=wordgame diff --git a/drill2.c b/drill2.c index 6f4a26c..189437c 100644 --- a/drill2.c +++ b/drill2.c @@ -64,8 +64,8 @@ pattern_enumerate (const char *pattern_chunk, last = strlen (pattern_enumerate_word); - if (c == '?' || c == '_') { - for (c = 'a'; c <= 'z'; c++) { + if (c == '?') { + for (c = 'A'; c <= 'Z'; c++) { pattern_enumerate_word[last] = c; pattern_enumerate (pattern_chunk + 1, dict_cursor_next (cursor, c)); } @@ -109,11 +109,11 @@ main (void) for (i = 0; i < 52; i++) { p = puzzle[i]; if (p < 26) { - puzzle_string[0] = 'a' + p; + puzzle_string[0] = 'A' + p; puzzle_string[1] = '?'; } else { puzzle_string[0] = '?'; - puzzle_string[1] = 'a' + (p - 26); + puzzle_string[1] = 'A' + (p - 26); } dict_init (&solution); pattern_expand (puzzle_string, &dict, &solution);