aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-05-14 21:26:50 +1200
committerTom Ryder <tom@sanctum.geek.nz>2017-05-14 21:26:50 +1200
commit1b19e6036284b43e6ec08cd6b92500a8f785eda0 (patch)
tree3079390e108ca7a907de2f66db94c509f68bd0df /games
parentIgnore blank lines (diff)
downloaddotfiles-1b19e6036284b43e6ec08cd6b92500a8f785eda0.tar.gz
dotfiles-1b19e6036284b43e6ec08cd6b92500a8f785eda0.zip
Clear letters array before each line in squ(6df)
Diffstat (limited to 'games')
-rw-r--r--games/squ.awk1
1 files changed, 1 insertions, 0 deletions
diff --git a/games/squ.awk b/games/squ.awk
index 7fdd1b96..b66b9b10 100644
--- a/games/squ.awk
+++ b/games/squ.awk
@@ -1,6 +1,7 @@
# Make a reduced Latin square out of each line of input
len = length {
str = toupper($0)
+ split("", let, ":")
for (i = 1; i <= len; i++)
let[i - 1] = substr(str, i, 1)
for (j in let)