]> git.cworth.org Git - wordgame/commitdiff
Prefer capital letters in puzzle presentation
authorCarl Worth <cworth@raht.cworth.org>
Sat, 23 Sep 2006 10:49:52 +0000 (03:49 -0700)
committerCarl Worth <cworth@raht.cworth.org>
Sat, 23 Sep 2006 10:49:52 +0000 (03:49 -0700)
drill2.c

index 6f4a26c0fbc744d7b2edca589617003ce29fed1c..189437cb1526cd4720c23dfee3b6ee2d339937fb 100644 (file)
--- 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);