aboutsummaryrefslogtreecommitdiff
path: root/ls47.py
diff options
context:
space:
mode:
authorMirek Kratochvil <exa.exa@gmail.com>2026-11-20 09:00:55 +0100
committerMirek Kratochvil <exa.exa@gmail.com>2026-11-20 09:00:55 +0100
commit967de16bef74d49d1da23c1264920811eff8eef5 (patch)
tree91562c2913b6dc5dd295fde55e4a8a5d91589564 /ls47.py
parent4afa29aed3d94c52526151219649dd775bbb3330 (diff)
downloadls47-967de16bef74d49d1da23c1264920811eff8eef5.tar.gz
ls47-967de16bef74d49d1da23c1264920811eff8eef5.tar.bz2
fix the letters order to match the board with arrows
Diffstat (limited to 'ls47.py')
-rwxr-xr-xls47.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ls47.py b/ls47.py
index ae8b201..2b6b1aa 100755
--- a/ls47.py
+++ b/ls47.py
@@ -11,7 +11,9 @@ import random
import sys
letters = "_ABCDEFGHIJKLMNOPQRSTUVWXYZ.,:?!'()0123456789+-*/"
-tiles = list(zip(letters, map(lambda x: (x // 7, x % 7), range(7 * 7))))
+tiles = list(
+ zip(letters, map(lambda x: ((7 - x // 7) % 7, (7 - x % 7) % 7), range(7 * 7)))
+)
padding_size_min = 5
padding_size_max = 15