Skip to content

Commit

Permalink
wordsearch: Improve formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosuav committed Oct 2, 2023
1 parent a40a284 commit 9f006b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wordsearch.pike
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9f006b9

Please sign in to comment.