aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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