From 9f006b99c3cee5c6ee16247ac59365963d345baa Mon Sep 17 00:00:00 2001 From: Chris Angelico Date: Mon, 2 Oct 2023 12:24:51 +1100 Subject: [PATCH] wordsearch: Improve formatting --- wordsearch.pike | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wordsearch.pike b/wordsearch.pike index 8755a8f..ae170d8 100644 --- a/wordsearch.pike +++ b/wordsearch.pike @@ -32,7 +32,7 @@ int main(int argc, array(string) argv) array(string) words = Stdio.read_file(fn) / "\n"; array(string) matches = listwords(words, ltrs, minlength); foreach (matches, string w) - write("%d %s\n", sizeof(w) + `+(@ltrscore[((array)w)[*]]), w); + write("%2d %s\n", sizeof(w) + `+(@ltrscore[((array)w)[*]]), w); if (!sizeof(words) || !hidden) return 0; int best = sizeof(matches[-1]) + 1; for (int ltr = 'a'; ltr <= 'z'; ++ltr) {