From d5490c308167d71b2e2e03fac44ed5ef911e374c Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Sat, 23 Sep 2006 03:49:52 -0700 Subject: [PATCH] Prefer capital letters in puzzle presentation --- drill2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); -- 2.43.0