X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=drill2.c;h=16b50670f53893a8e74a6aec5ee09c50ddb39176;hb=HEAD;hp=6f4a26c0fbc744d7b2edca589617003ce29fed1c;hpb=4af5ce4dd24d24df0909f75106c06514f565954d;p=wordgame diff --git a/drill2.c b/drill2.c index 6f4a26c..16b5067 100644 --- a/drill2.c +++ b/drill2.c @@ -1,7 +1,7 @@ /* * Copyright © 2006 Carl Worth * - * This program is free software; you can redistribute it and\/or modify + * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. @@ -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);